Skip to content
Commit Detail

Commit 78896ae

Author
Harris Hancock <harris@cloudflare.com> 2026-02-13 16:23:52 +0000
Parents
c3789ee
Tree
9af4c20
fix: ensure logWarning() reaches tail workers and --verbose stderr

Several logWarning() call sites were guarded by isInspectorEnabled(),
which only returns true when the Chrome DevTools inspector is connected.
This meant warnings were silently dropped for streaming tail workers and
--verbose stderr logging.

Add IoContext::hasWarningHandler() that returns true if the inspector, a
streaming tail worker tracer, OR --verbose logging is active. Replace all
isInspectorEnabled() guards on warning paths with hasWarningHandler().

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed