set default log values

This commit is contained in:
A.Unger
2020-03-10 14:22:03 +01:00
parent 65c29c77b6
commit 065c8a2475

View File

@@ -24,12 +24,14 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.BoolFlag{
Name: "log-pretty",
Value: true,
Usage: "Enable pretty logging",
EnvVars: []string{"OCS_LOG_PRETTY"},
Destination: &cfg.Log.Pretty,
},
&cli.BoolFlag{
Name: "log-color",
Value: true,
Usage: "Enable colored logging",
EnvVars: []string{"OCS_LOG_COLOR"},
Destination: &cfg.Log.Color,