mirror of https://github.com/gin-gonic/gin.git
Print the error info that write log failed in debug mode
This commit is contained in:
parent
6531b79b30
commit
8dbee163b2
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue