Skip to content

Commit 6273fac

Browse files
authored
Merge pull request #151 from monzo/log-http2-stream-closed-at-debug
Log http2: stream closed as debug-level
2 parents 2e7ad09 + 7b37b94 commit 6273fac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

http.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ func copyErrSeverity(err error) slog.Severity {
6666

6767
switch {
6868
case strings.HasSuffix(err.Error(), "read on closed response body"),
69-
strings.HasSuffix(err.Error(), "connection reset by peer"):
69+
strings.HasSuffix(err.Error(), "connection reset by peer"),
70+
strings.HasSuffix(err.Error(), "http2: stream closed"):
7071
return slog.DebugSeverity
7172
}
7273

0 commit comments

Comments
 (0)