Merge pull request #8894 from thaJeztah/log_improve

log: cleanups and improvements to decouple more from logrus
This commit is contained in:
Derek McGowan
2023-08-21 15:08:18 -07:00
committed by GitHub
4 changed files with 149 additions and 57 deletions

View File

@@ -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
}