aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-02-22 08:32:25 +0000
committerGitHub <noreply@github.com>2022-02-22 16:32:25 +0800
commit704bdf89a2f4ede780e4ac3ed9599c4b975f316c (patch)
tree70cfc5b1b682a7c10e381a01690845dbdb8e6eb0
parentdc988eae0c5a81b1228677667c7c940905626110 (diff)
downloadgitea-704bdf89a2f4ede780e4ac3ed9599c4b975f316c.tar.gz
gitea-704bdf89a2f4ede780e4ac3ed9599c4b975f316c.zip
Don't report signal: killed errors in serviceRPC (#18850)
Fix #18849 Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r--routers/web/repo/http.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/web/repo/http.go b/routers/web/repo/http.go
index a27a60cb84..d5379b610e 100644
--- a/routers/web/repo/http.go
+++ b/routers/web/repo/http.go
@@ -495,7 +495,9 @@ func serviceRPC(ctx gocontext.Context, h serviceHandler, service string) {
Stdin: reqBody,
Stderr: &stderr,
}); err != nil {
- log.Error("Fail to serve RPC(%s) in %s: %v - %s", service, h.dir, err, stderr.String())
+ if err.Error() != "signal: killed" {
+ log.Error("Fail to serve RPC(%s) in %s: %v - %s", service, h.dir, err, stderr.String())
+ }
return
}
}