fix logging levels

This commit is contained in:
mykola2312 2025-01-24 23:28:36 +02:00
parent c509106aec
commit ddb0c24977

View file

@ -67,8 +67,6 @@ func setupLogging(log LogConfig) {
level = logging.INFO
}
logging.SetLevel(level, "")
// if log tag has file path, then it open file in append mode,
// otherwise it will use default stdout logger
if log.LogPath != "" {
@ -80,6 +78,8 @@ func setupLogging(log LogConfig) {
logging.SetBackend(logging.NewLogBackend(logFile, "", 0))
}
logging.SetLevel(level, "")
}
func bootstrapNode() {