From 4a7a8a5dae8909d906f9661fa4d4687348af8b17 Mon Sep 17 00:00:00 2001 From: karldoenitz Date: Sat, 23 Nov 2024 13:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=8C=96=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logger/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger/log.go b/logger/log.go index 97a453a..a0409d1 100644 --- a/logger/log.go +++ b/logger/log.go @@ -227,7 +227,7 @@ func InitWarning(level string) { Warning.Level = WarningLevel switch { case level == "" || level == "discard": - Warning.Logger = log.New(ioutil.Discard, "\x1b[43m WARNING \x1b[0m ", log.Ldate|log.Ltime) + Warning.Logger = log.New(io.Discard, "\x1b[43m WARNING \x1b[0m ", log.Ldate|log.Ltime) break case level == "stdout": Warning.Logger = log.New(os.Stdout, "\x1b[43m WARNING \x1b[0m ", log.Ldate|log.Ltime)