add storage metadata to the runtime and fix its config parsing when running on supervised mode

This commit is contained in:
A.Unger
2021-03-03 17:36:03 +01:00
parent 22e3d2fd35
commit 59de8198c6
8 changed files with 84 additions and 95 deletions
+3 -4
View File
@@ -17,21 +17,20 @@ func RootWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.StringFlag{
Name: "log-level",
Value: "info",
Usage: "Set logging level",
EnvVars: []string{"STORAGE_LOG_LEVEL"},
EnvVars: []string{"STORAGE_LOG_LEVEL", "OCIS_LOG_LEVEL"},
Destination: &cfg.Log.Level,
},
&cli.BoolFlag{
Name: "log-pretty",
Usage: "Enable pretty logging",
EnvVars: []string{"STORAGE_LOG_PRETTY"},
EnvVars: []string{"STORAGE_LOG_PRETTY", "OCIS_LOG_PRETTY"},
Destination: &cfg.Log.Pretty,
},
&cli.BoolFlag{
Name: "log-color",
Usage: "Enable colored logging",
EnvVars: []string{"STORAGE_LOG_COLOR"},
EnvVars: []string{"STORAGE_LOG_COLOR", "OCIS_LOG_COLOR"},
Destination: &cfg.Log.Color,
},
}