Skip to content

Commit

Permalink
Add debug logging when reading log-level from TOML file
Browse files Browse the repository at this point in the history
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
  • Loading branch information
MatthewJohn and yermulnik committed Jun 14, 2024
1 parent 665e0d0 commit b225a09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/param_parsing/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func getParamsTOML(params Params) (Params, error) {
}
if viperParser.Get("log-level") != nil {
params.LogLevel = viperParser.GetString("log-level")
logger.Debugf("Using \"log-level\" from %q: %q", tomlPath, params.LogLevel)
}
if viperParser.Get("version") != nil {
params.Version = viperParser.GetString("version")
Expand Down

0 comments on commit b225a09

Please sign in to comment.