From f47a28a480aa2bf1fd547b9bbbe9f65d9345bc11 Mon Sep 17 00:00:00 2001 From: karldoenitz Date: Mon, 18 Nov 2024 16:07:53 +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 214fe33..5f6b507 100644 --- a/logger/log.go +++ b/logger/log.go @@ -156,7 +156,7 @@ func InitLoggerWithConfigFile(filePath string) { if filePath == "" { return } - raw, err := ioutil.ReadFile(filePath) + raw, err := os.ReadFile(filePath) if err != nil { println(err.Error()) os.Exit(1)