mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-14 16:19:40 -06:00
set default log values
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user