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

View File

@ -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)
}
}
}