diff --git a/config.go b/config.go index e69b2db..f790773 100644 --- a/config.go +++ b/config.go @@ -85,6 +85,13 @@ func loadConfig(filename string) error { } config = tmpConfig + + log.WithFields(log.Fields{ + "auto_messages": len(config.AutoMessages), + "rules": len(config.Rules), + "channels": len(config.Channels), + }).Info("Config file (re)loaded") + return nil } diff --git a/main.go b/main.go index e20a00e..b636922 100644 --- a/main.go +++ b/main.go @@ -127,12 +127,6 @@ func main() { irc.ExecuteJoins(config.Channels) - log.WithFields(log.Fields{ - "auto_messages": len(config.AutoMessages), - "rules": len(config.Rules), - "channels": len(config.Channels), - }).Info("Config file reloaded") - case <-autoMessageTicker.C: configLock.RLock() for _, am := range config.AutoMessages {