From 539511266779110bc83f5531a0bd4a4400dd8b95 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Fri, 15 Nov 2024 18:35:34 +0100 Subject: [PATCH] fix: enable silent mode Hides this log output Failed to find configuration /etc/gotify/config.yml Failed to find configuration config.yml, using example file config.example.yml --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index c94d98f5..70e1ce5e 100644 --- a/config/config.go +++ b/config/config.go @@ -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) }