Skip to content

Commit 26e3bd8

Browse files
author
Dean Karn
committed
Update example logging & recovery middleware
1 parent b205d34 commit 26e3bd8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/middleware/logging-recovery/logging_recovery.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ func LoggingAndRecovery(color bool) pure.Middleware {
127127
color = status400
128128
case code >= http.StatusMultipleChoices:
129129
color = status300
130-
default:
131-
color = status
132130
}
133131

134132
log.Printf("%s %d %s[%s%s%s] %q %v %d\n", color, code, ansi.Reset, color, r.Method, ansi.Reset, r.URL, time.Since(t1), lw.Size())

0 commit comments

Comments
 (0)