Skip to content

Commit

Permalink
fix: enable silent mode
Browse files Browse the repository at this point in the history
Hides this log output

    Failed to find configuration /etc/gotify/config.yml
    Failed to find configuration config.yml, using example file config.example.yml
  • Loading branch information
jmattheis committed Nov 15, 2024
1 parent 2eee800 commit 5395112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func configFiles() []string {
// Get returns the configuration extracted from env variables or config file.
func Get() *Configuration {
conf := new(Configuration)
err := configor.New(&configor.Config{ENVPrefix: "GOTIFY"}).Load(conf, configFiles()...)
err := configor.New(&configor.Config{ENVPrefix: "GOTIFY", Silent: true}).Load(conf, configFiles()...)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 5395112

Please sign in to comment.