mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
Add log.IsGreaterOrEqualTo, that take into consideration path-scoped log levels
This commit is contained in:
parent
03119e5ccf
commit
51e07d4cb5
13 changed files with 60 additions and 19 deletions
|
@ -205,7 +205,7 @@ func Load() {
|
|||
}
|
||||
|
||||
// Print current configuration if log level is Debug
|
||||
if log.CurrentLevel() >= log.LevelDebug {
|
||||
if log.IsGreaterOrEqualTo(log.LevelDebug) {
|
||||
prettyConf := pretty.Sprintf("Loaded configuration from '%s': %# v", Server.ConfigFile, Server)
|
||||
if Server.EnableLogRedacting {
|
||||
prettyConf = log.Redact(prettyConf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue