Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyang0 committed Jun 29, 2024
1 parent 06712f4 commit eeb69f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/middlewares/gin_zerolog.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package middlewares

import (
"net/http"
"time"

"github.com/gin-gonic/gin"
Expand Down Expand Up @@ -79,7 +80,7 @@ func logSwitch(data *ginHands) {
Str("client_ip", data.ClientIP).
Msg(data.MsgStr)

case data.StatusCode >= 500: //nolint
case data.StatusCode >= http.StatusInternalServerError:
log.GetGlobalLogger().Error().
Str("ser_name", data.SerName).
Str("method", data.Method).
Expand Down

0 comments on commit eeb69f6

Please sign in to comment.