debugLevel test

master
Alex 2022-02-12 20:19:53 +01:00
parent 347e1dffca
commit b577de3e2e
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,9 @@
package main
import (
"fmt"
"time"
log "github.com/sirupsen/logrus"
"krakatoa.net/backend/modules/configs/kraSettingsConfig"
"krakatoa.net/backend/modules/configs/serverConfig"
@ -14,6 +17,10 @@ import (
func init() {
serverConfig.LoadServerConfig()
fmt.Print(serverConfig.Cfg.Debug)
time.Sleep(5000 * time.Second)
if serverConfig.Cfg.Debug {
log.SetLevel(log.DebugLevel)
}