File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -96,19 +96,17 @@ func InitConfig() (*Config, error) {
96
96
if err != nil {
97
97
switch err .(type ) {
98
98
default :
99
- log .Println ("Enter 0" )
100
99
return nil , fmt .Errorf ("fatal error loading config file: %s" , err )
101
100
case viper.ConfigFileNotFoundError :
102
- log .Println ("Enter 1 " )
103
- return nil , errors . New ( "No config file found. Using defaults and environment variables" )
101
+ log .Println ("No config file found. Using defaults and environment variables " )
102
+ return nil , nil
104
103
}
105
104
}
106
105
107
106
bindEnvs (Configuration )
108
107
109
108
err = viper .Unmarshal (& Configuration )
110
109
if err != nil {
111
- log .Println ("Enter 2" )
112
110
return nil , fmt .Errorf ("fatal error loading config file: %s" , err )
113
111
}
114
112
defaults .SetDefaults (& Configuration )
@@ -117,7 +115,6 @@ func InitConfig() (*Config, error) {
117
115
118
116
if Configuration .Integrity .AggregateMode {
119
117
if Configuration .Bloock .ApiKey == "" {
120
- log .Println ("Enter 3" )
121
118
return nil , errors .New ("aggregate mode requires a BLOOCK Api Key set" )
122
119
}
123
120
}
You can’t perform that action at this time.
0 commit comments