Skip to content

Commit

Permalink
Merge pull request #50 from vroldanbet/move-dotenv-log-to-trace
Browse files Browse the repository at this point in the history
increase logging level for dotenv log message
  • Loading branch information
jzelinskie committed Aug 25, 2023
2 parents d023222 + 825c151 commit b466959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobrautil.go
Expand Up @@ -59,7 +59,7 @@ func SyncViperPreRunE(prefix string) CobraRunFunc {
// The .dotenv file is loaded first before any additional Viper behavior.
func SyncViperDotEnvPreRunE(prefix, envfilePath string, l logr.Logger) CobraRunFunc {
if err := godotenv.Load(stringz.DefaultEmpty(envfilePath, ".env")); err != nil {
l.Info(
l.V(2).Info(
"skipped loading dotenv",
"path", envfilePath,
"err", err,
Expand Down

0 comments on commit b466959

Please sign in to comment.