From 8dbee163b27a5202c73a920d79129edf179de444 Mon Sep 17 00:00:00 2001 From: mstmdev Date: Fri, 1 Jul 2022 10:47:15 +0800 Subject: [PATCH] Print the error info that write log failed in debug mode --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index ba6ec615..840c78a0 100644 --- a/logger.go +++ b/logger.go @@ -266,7 +266,7 @@ func LoggerWithConfig(conf LoggerConfig) HandlerFunc { param.Path = path if _, err := out.Write(bytesconv.StringToBytes(formatter(param))); err != nil { - fmt.Println(err) + debugPrintError(err) } } }