Print the error info that write log failed in debug mode

This commit is contained in:
mstmdev 2022-07-01 10:47:15 +08:00
parent 6531b79b30
commit 8dbee163b2
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ func LoggerWithConfig(conf LoggerConfig) HandlerFunc {
param.Path = path param.Path = path
if _, err := out.Write(bytesconv.StringToBytes(formatter(param))); err != nil { if _, err := out.Write(bytesconv.StringToBytes(formatter(param))); err != nil {
fmt.Println(err) debugPrintError(err)
} }
} }
} }