We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d6b0d commit 5c323feCopy full SHA for 5c323fe
lib/param_parsing/parameters.go
@@ -50,6 +50,7 @@ func GetParameters() Params {
50
// Parse the command line parameters to fetch stuff like chdir
51
getopt.Parse()
52
53
+ oldLogLevel := params.LogLevel
54
logger = lib.InitLogger(params.LogLevel)
55
var err error
56
// Read configuration files
@@ -70,6 +71,11 @@ func GetParameters() Params {
70
71
logger.Fatalf("Error parsing configuration file: %q", err)
72
}
73
74
+ // Logger config was changed by the config files. Reinitialise.
75
+ if params.LogLevel != oldLogLevel {
76
+ logger = lib.InitLogger(params.LogLevel)
77
+ }
78
+
79
// Parse again to overwrite anything that might by defined on the cli AND in any config file (CLI always wins)
80
81
args := getopt.Args()
0 commit comments