From ddb0c249776f86b83b73808739ca3482138eed0e Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Fri, 24 Jan 2025 23:28:36 +0200 Subject: [PATCH] fix logging levels --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 238bca1..a80bc9d 100644 --- a/main.go +++ b/main.go @@ -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() {