[TASK] tip in config load arrow
This commit is contained in:
parent
1d856fa2ce
commit
58b2679492
2
main.go
2
main.go
|
@ -26,7 +26,7 @@ func main() {
|
||||||
config := &runtime.Config{}
|
config := &runtime.Config{}
|
||||||
|
|
||||||
if err := file.ReadTOML(configFile, config); err != nil {
|
if err := file.ReadTOML(configFile, config); err != nil {
|
||||||
log.Panicf("error on read config: %s", err)
|
log.WithField("tip", "maybe call me with: hook2xmpp--config /etc/hook2xmpp.conf").Panicf("error on read config: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.SetLevel(config.LogLevel)
|
log.SetLevel(config.LogLevel)
|
||||||
|
|
Loading…
Reference in New Issue