Skip to content

Commit 0b83602

Browse files
fix: makes response writer error a debug message. (#1549)
* Makes response writer error a debug message. * trigger * log at warn level * Update frankenphp.go --------- Co-authored-by: Alliballibaba <alliballibaba@gmail.com> Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
1 parent ecca9dc commit 0b83602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frankenphp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ func go_sapi_flush(threadIndex C.uintptr_t) bool {
533533
}
534534

535535
if err := http.NewResponseController(fc.responseWriter).Flush(); err != nil {
536-
logger.LogAttrs(context.Background(), slog.LevelError, "the current responseWriter is not a flusher", slog.Any("error", err))
536+
logger.LogAttrs(context.Background(), slog.LevelWarn, "the current responseWriter is not a flusher, if you are not using a custom build, please report this issue", slog.Any("error", err))
537537
}
538538

539539
return false

0 commit comments

Comments
 (0)