mirror of
https://github.com/versity/versitygw.git
synced 2026-01-09 04:53:10 +00:00
add internal error log to non-xml response
This commit is contained in:
@@ -424,6 +424,10 @@ func SendResponse(ctx *fiber.Ctx, err error) error {
|
||||
ctx.Status(serr.HTTPStatusCode)
|
||||
return ctx.Send(s3err.GetAPIErrorResponse(serr, "", "", ""))
|
||||
}
|
||||
|
||||
fmt.Fprintf(os.Stderr, "Internal Error, req:\n%v\nerr:\n%v\n",
|
||||
ctx.Request(), err)
|
||||
|
||||
return ctx.Send(s3err.GetAPIErrorResponse(
|
||||
s3err.GetAPIError(s3err.ErrInternalError), "", "", ""))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user