From 317e49283e0daa4f51808faf7219c4267f749996 Mon Sep 17 00:00:00 2001 From: WJQSERVER Date: Sun, 9 Feb 2025 23:08:34 +0800 Subject: [PATCH] update --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 41094a3..9bd6faa 100644 --- a/main.go +++ b/main.go @@ -70,7 +70,10 @@ func setupLogger(cfg *config.Config) { if err != nil { fmt.Printf("Failed to initialize logger: %v\n", err) } - logger.SetLogLevel(cfg.Log.Level) + err = logger.SetLogLevel(cfg.Log.Level) + if err != nil { + fmt.Printf("Logger Level Error: %v\n", err) + } fmt.Printf("Log Level: %s\n", cfg.Log.Level) logDebug("Config File Path: ", cfgfile) logDebug("Loaded config: %v\n", cfg)