aboutsummaryrefslogtreecommitdiffstats
path: root/services/gitdiff
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-10-10 21:54:30 +0100
committerGitHub <noreply@github.com>2022-10-10 21:54:30 +0100
commit3ccebf7f4044b85eef975e4544785893da763bd2 (patch)
tree2e8e14e0cf4f7c0acaf6bbb4fac678e8de0919db /services/gitdiff
parent94037ada247e8b27c7b456e1eeb9461cdb433d66 (diff)
downloadgitea-3ccebf7f4044b85eef975e4544785893da763bd2.tar.gz
gitea-3ccebf7f4044b85eef975e4544785893da763bd2.zip
Stop logging CheckPath returns error: context canceled (#21064)
We should only log CheckPath errors if they are not simply due to context cancellation - and we should add a little more context to the error message. Fix #20709 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'services/gitdiff')
-rw-r--r--services/gitdiff/gitdiff.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go
index 9844992f5b..e7362cdcdd 100644
--- a/services/gitdiff/gitdiff.go
+++ b/services/gitdiff/gitdiff.go
@@ -1178,8 +1178,6 @@ func GetDiff(gitRepo *git.Repository, opts *DiffOptions, files ...string) (*Diff
} else if language, has := attrs["gitlab-language"]; has && language != "unspecified" && language != "" {
diffFile.Language = language
}
- } else {
- log.Error("Unexpected error: %v", err)
}
}