Skip to content

Commit 0e6cd07

Browse files
committed
reverted the original behavior of logging WARN on Status Code >=500
1 parent 55517de commit 0e6cd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/httpmw/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (c *RequestLoggerContext) WriteLog(ctx context.Context, status int) {
9999
// includes proxy errors etc. It also causes slogtest to fail
100100
// instantly without an error message by default.
101101
if status >= http.StatusInternalServerError {
102-
c.log.Error(ctx, c.message)
102+
c.log.Warn(ctx, c.message)
103103
} else {
104104
c.log.Debug(ctx, c.message)
105105
}

0 commit comments

Comments
 (0)