We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e7ad09 + 7b37b94 commit 6273facCopy full SHA for 6273fac
1 file changed
http.go
@@ -66,7 +66,8 @@ func copyErrSeverity(err error) slog.Severity {
66
67
switch {
68
case strings.HasSuffix(err.Error(), "read on closed response body"),
69
- strings.HasSuffix(err.Error(), "connection reset by peer"):
+ strings.HasSuffix(err.Error(), "connection reset by peer"),
70
+ strings.HasSuffix(err.Error(), "http2: stream closed"):
71
return slog.DebugSeverity
72
}
73
0 commit comments