Skip to content

Commit 5d1aa17

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Don't report signal: killed errors in serviceRPC (go-gitea#18850)
2 parents a5156b2 + 704bdf8 commit 5d1aa17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routers/web/repo/http.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@ func serviceRPC(ctx gocontext.Context, h serviceHandler, service string) {
495495
Stdin: reqBody,
496496
Stderr: &stderr,
497497
}); err != nil {
498-
log.Error("Fail to serve RPC(%s) in %s: %v - %s", service, h.dir, err, stderr.String())
498+
if err.Error() != "signal: killed" {
499+
log.Error("Fail to serve RPC(%s) in %s: %v - %s", service, h.dir, err, stderr.String())
500+
}
499501
return
500502
}
501503
}

0 commit comments

Comments
 (0)