From cace8c91fe2e8cef030443a79d4ec4a249a96e9b Mon Sep 17 00:00:00 2001 From: Luca Bigliardi Date: Sat, 17 Apr 2021 23:17:38 +0200 Subject: [PATCH] fix config declaration typo Signed-off-by: Luca Bigliardi --- config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index a947390..737f265 100644 --- a/config.go +++ b/config.go @@ -18,6 +18,8 @@ import ( "gopkg.in/yaml.v2" "io/ioutil" "os" + + "github.com/google/alertmanager-irc-relay/logging" ) const ( @@ -47,7 +49,7 @@ type Config struct { UsePrivmsg bool `yaml:"use_privmsg"` AlertBufferSize int `yaml:"alert_buffer_size"` - NickservIdentifyPatterns []string `yaml:nickserv_identify_patterns` + NickservIdentifyPatterns []string `yaml:"nickserv_identify_patterns"` } func LoadConfig(configFile string) (*Config, error) { @@ -93,5 +95,8 @@ func LoadConfig(configFile string) (*Config, error) { } } + loadedConfig, _ := yaml.Marshal(config) + logging.Debug("Loaded config:\n%s", loadedConfig) + return config, nil }