Print only debug messages when specified (xmpp). Closes #345

This commit is contained in:
Wim
2018-01-26 21:54:09 +01:00
parent 6523494e83
commit 6a047f8722
3 changed files with 3 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ func main() {
log.Println("WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.")
}
cfg := config.NewConfig(*flagConfig)
cfg.General.Debug = *flagDebug
r, err := gateway.NewRouter(cfg)
if err != nil {
log.Fatalf("Starting gateway failed: %s", err)