Skip to content

Commit

Permalink
fix: do not treat >5000ms response as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Yao Wei (魏銘廷) committed Nov 14, 2018
1 parent cf28a64 commit dd96096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func logResult(proxyWriter *ProxyWriter, r *http.Request, t time.Duration) {

if status <= 399 && msec <= 500 {
entry.Info(summary)
} else if status <= 499 && msec <= 5000 {
} else if status <= 499 {
entry.Warn(summary)
} else if status <= 599 {
entry.Error(summary)
Expand Down

0 comments on commit dd96096

Please sign in to comment.