diff --git a/s3api/controllers/base.go b/s3api/controllers/base.go index 862478a..071fa65 100644 --- a/s3api/controllers/base.go +++ b/s3api/controllers/base.go @@ -21,6 +21,7 @@ import ( "fmt" "io" "net/http" + "os" "strconv" "strings" "time" @@ -396,6 +397,10 @@ func Responce[R comparable](ctx *fiber.Ctx, resp R, 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), "", "", "")) }