Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbarfuss committed May 30, 2024
1 parent c11c84e commit 0b9dec3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/aws-s3-proxy/pkg/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ func initConfig() {
viper.AutomaticEnv() // read in environment variables that match

// If a config file is found, read it in.
if err := viper.ReadInConfig(); err != nil {
logger.Infof("unable to read in config file: %v", err)
if err := viper.ReadInConfig(); err == nil {
logger.Infof("using config file: %s", viper.ConfigFileUsed())
}

logger.Infof("using config file: %s", viper.ConfigFileUsed())
}

// viperBindFlag provides a wrapper around the viper pflag bindings that handles error checks
Expand Down

0 comments on commit 0b9dec3

Please sign in to comment.