mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-04-12 20:22:06 +02:00
added debug log for already committed response error
This commit is contained in:
parent
226352f884
commit
9b54fd3516
@ -47,6 +47,9 @@ func InitApi(app core.App) (*echo.Echo, error) {
|
|||||||
// custom error handler
|
// custom error handler
|
||||||
e.HTTPErrorHandler = func(c echo.Context, err error) {
|
e.HTTPErrorHandler = func(c echo.Context, err error) {
|
||||||
if c.Response().Committed {
|
if c.Response().Committed {
|
||||||
|
if app.IsDebug() {
|
||||||
|
log.Println("HTTPErrorHandler response was already committed:", err)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user