set log level at startup

This commit is contained in:
Wim Brand committed 2018-08-15 10:04:43 +02:00
1 parent 76febde36b
commit 6e1e463ee9
1 file changed
+4
+4
View File
@@ -27,5 +27,9 @@ func Init(r *httprouter.Router, prefix string) {
os.Exit(1)
}
if !webconf.DebugMode {
log.SetLogLevel(log.LevelInfo)
}
webcontroller.New(r, prefix, webconf)
}