Skip to content

Conversation

dpschen
Copy link
Contributor

@dpschen dpschen commented Jun 16, 2025

No description provided.

return
}
log.Warning(err.Error())
log.Warning("Using default config.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only true if no other config file could be read either.

@@ -527,6 +528,29 @@ func setConfigFromEnv() error {
return viper.MergeConfigMap(configMap)
}

func mergeConfigFromPath(p string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't viper do this already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants