diff --git a/server/middleware.go b/server/middleware.go index c8b5ead..6b5eb68 100644 --- a/server/middleware.go +++ b/server/middleware.go @@ -31,7 +31,7 @@ func (srv *Service) Default(c *gin.Context) { c.Abort() cl.Str("error", fmt.Sprint(err)) } - } else if c.Writer.Status() >= 500 { + } else if c.Writer.Status() >= 400 { cl = srv.l.Error().Strs("error", c.Errors.Errors()) } else { cl = srv.l.Info()