Skip to content

Improve logging around reading and merging config files#2106

Open
chancez wants to merge 1 commit intospf13:masterfrom
chancez:improve_logging_multiple_files
Open

Improve logging around reading and merging config files#2106
chancez wants to merge 1 commit intospf13:masterfrom
chancez:improve_logging_multiple_files

Conversation

@chancez
Copy link
Copy Markdown
Collaborator

@chancez chancez commented Mar 9, 2026

Currently viper logs at info level when it attempts to read or merge a config file, and then logs the file it is reading at debug level. When reading multiple files, this means we only get redundant log messages about attempts, but no details about what files are actually being read unless we use debug logs. This patch swaps the log levels so that we get info logs about what files are being read, and debug logs about the attempts.

Currently viper logs at info level when it attempts to read or merge a
config file, and then logs the file it is reading at debug level. When
reading multiple files, this means we only get redundant log messages
about attempts, but no details about what files are actually being read
unless we use debug logs. This patch swaps the log levels so that we get
info logs about what files are being read, and debug logs about the
attempts.

Signed-off-by: Chance Zibolski <chancez@cisco.com>
@chancez chancez added the release-note/misc Miscellaneous changes label Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc Miscellaneous changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant