Skip to content

Commit 4d3201e

Browse files
Don't warn on no config
Signed-off-by: Rohit Nayak <[email protected]>
1 parent 25325ba commit 4d3201e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/viperutil/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func LoadConfig() (context.CancelFunc, error) {
168168
switch configFileNotFoundHandling.Get() {
169169
case WarnOnConfigFileNotFound:
170170
msg += ". This is optional, and can be ignored if you are not using config files. For a detailed explanation, see https://github.com/vitessio/vitess/blob/main/doc/viper/viper.md#config-files."
171-
log.WARN(msg, registry.Static.ConfigFileUsed(), err.Error())
171+
// log.WARN(msg, registry.Static.ConfigFileUsed(), err.Error())
172172
fallthrough // after warning, ignore the error
173173
case IgnoreConfigFileNotFound:
174174
return func() {}, nil

0 commit comments

Comments
 (0)