Merge pull request #8894 from thaJeztah/log_improve
log: cleanups and improvements to decouple more from logrus
This commit is contained in:
@@ -357,7 +357,7 @@ func setLogLevel(context *cli.Context, config *srvconfig.Config) error {
|
||||
}
|
||||
|
||||
func setLogFormat(config *srvconfig.Config) error {
|
||||
f := config.Debug.Format
|
||||
f := log.OutputFormat(config.Debug.Format)
|
||||
if f == "" {
|
||||
f = log.TextFormat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user