From c276c276c46744dfe1f8e08fa649f88b94741114 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 19 Dec 2021 14:53:36 +0800 Subject: [PATCH] update --- server/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()