mirror of
https://github.com/google/alertmanager-irc-relay.git
synced 2025-01-12 21:22:37 +01:00
fix config declaration typo
Signed-off-by: Luca Bigliardi <shammash@google.com>
This commit is contained in:
parent
a63bfa3aad
commit
cace8c91fe
@ -18,6 +18,8 @@ import (
|
|||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/google/alertmanager-irc-relay/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -47,7 +49,7 @@ type Config struct {
|
|||||||
UsePrivmsg bool `yaml:"use_privmsg"`
|
UsePrivmsg bool `yaml:"use_privmsg"`
|
||||||
AlertBufferSize int `yaml:"alert_buffer_size"`
|
AlertBufferSize int `yaml:"alert_buffer_size"`
|
||||||
|
|
||||||
NickservIdentifyPatterns []string `yaml:nickserv_identify_patterns`
|
NickservIdentifyPatterns []string `yaml:"nickserv_identify_patterns"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoadConfig(configFile string) (*Config, error) {
|
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
|
return config, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user