log: define OutputFormat type
Strong-type the format. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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