mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Log at debug level when configured (#2262)
We added debug/info log levels in #2225 but the configuration was not actually used to set the level.
This commit is contained in:
parent
7494513400
commit
4023296d86
@ -71,6 +71,11 @@ the way that the Fleet server works.
|
||||
} else {
|
||||
logger = kitlog.NewLogfmtLogger(output)
|
||||
}
|
||||
if config.Logging.Debug {
|
||||
logger = level.NewFilter(logger, level.AllowDebug())
|
||||
} else {
|
||||
logger = level.NewFilter(logger, level.AllowInfo())
|
||||
}
|
||||
logger = kitlog.With(logger, "ts", kitlog.DefaultTimestampUTC)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user