+When using Sentry (or other libraries that patch `console` methods) in `dev` mode, logs can be swallowed. This happens because `ConsoleInterceptor` overrides `console` methods with its own implementation that writes directly to `process.stdout`/`stderr`, bypassing any previous patches (like Sentry's breadcrumb capture or upstream transport). Additionally, if Sentry patches `console` *after* `ConsoleInterceptor` starts interception, the restoration logic in `ConsoleInterceptor` might conflict or break compatibility.
0 commit comments