Skip to content

Commit 704bdf8

Browse files
authored
Don't report signal: killed errors in serviceRPC (#18850)
Fix #18849 Signed-off-by: Andrew Thornton <[email protected]>
1 parent dc988ea commit 704bdf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routers/web/repo/http.go

+3-1
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)