File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,11 @@ var Version = "dev"
4848func main () {
4949
5050 appConfig , err := config .LoadApiConfig ()
51- log .SetLevel (appConfig .LogLevel )
52-
5351 if err != nil {
5452 log .Fatalf ("Cannot load the api configuration: '%v'" , err .Error ())
55- } else {
56- log .Debugf ("Config loaded successfully %+v:" , appConfig )
5753 }
54+ log .SetLevel (appConfig .LogLevel )
55+ log .Debugf ("Config loaded successfully %+v:" , appConfig )
5856
5957 m := monitoring .NewMetrics ("cluster_registry_api" , false )
6058 db := database .NewDb (appConfig , m )
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func LoadApiConfig() (*AppConfig, error) {
9595 }
9696
9797 logLevel := log .WARN
98- configLogLevel := getEnv ("LOG_LEVEL" , "" )
98+ configLogLevel := getEnv ("LOG_LEVEL" , "INFO " )
9999 if configLogLevel == "DEBUG" {
100100 logLevel = log .DEBUG
101101 } else if configLogLevel == "INFO" {
You can’t perform that action at this time.
0 commit comments