Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raajheer1 committed May 24, 2024
1 parent 94d4bfa commit 2114f96
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/go-chi/middleware/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,21 +174,6 @@ func statusLevel(status int) zerolog.Level {
}
}

func statusLabel(status int) string {
switch {
case status >= 100 && status < 300:
return "OK"
case status >= 300 && status < 400:
return "Redirect"
case status >= 400 && status < 500:
return "Client Error"
case status >= 500:
return "Server Error"
default:
return "Unknown"
}
}

func LogEntry(ctx context.Context) zerolog.Logger {
entry, ok := ctx.Value(middleware.LogEntryCtxKey).(*RequestLoggerEntry)
if !ok || entry == nil {
Expand Down

0 comments on commit 2114f96

Please sign in to comment.