Skip to content

Commit 8d66b19

Browse files
wxiaoguangdelvh
andauthored
Update modules/web/routing/logger.go
Co-authored-by: delvh <[email protected]> Signed-off-by: wxiaoguang <[email protected]>
1 parent 0335def commit 8d66b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/web/routing/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func logPrinter(logger log.Logger) func(trigger Event, record *requestRecord) {
104104
}
105105
logf := logInfo
106106
// lower the log level for some specific requests, in most cases these logs are not useful
107-
if 0 < status && status < 400 &&
107+
if status > 0 && status < 400 &&
108108
strings.HasPrefix(req.RequestURI, "/assets/") /* static assets */ ||
109109
req.RequestURI == "/user/events" /* Server-Sent Events (SSE) handler */ ||
110110
req.RequestURI == "/api/actions/runner.v1.RunnerService/FetchTask" /* Actions Runner polling */ {

0 commit comments

Comments
 (0)