Commit Graph
4 Commits
Author SHA1 Message Date
dab246 1b4723ef05 fix(logging): restore per-call webConsoleEnabled as first-class flag
webConsoleEnabled was deprecated in favour of a global constructor flag,
but that removed the ability to force specific log calls visible on web
in release/profile mode — a legitimate need for auth and Sentry init
diagnostics.

Carry webConsoleEnabled through the full pipeline:
LogRecord → buildLogRecord → _dispatch → public log functions.
ConsoleLogHandler reads the flag from the record rather than from its
constructor, so per-call opt-in works independently of build mode.

On web:
- handles() always returns true (filter deferred to handle())
- handle() prints only when record.webConsoleEnabled || isDebugMode

Existing call sites (authorization_interceptors, sentry_config) that
pass webConsoleEnabled: true are preserved and functional again.
2026-04-28 11:31:12 +07:00
dab246 f2048b2503 refactor(logger): centralize handler registration in registerLogHandlers (ADR-0078) 2026-04-28 11:31:12 +07:00
dab246 9876db67f8 feat(logger): add SentryEventHandler and SentryBreadcrumbHandler (ADR-0078)
refactor(logger): register Sentry handlers at startup for mobile and web (ADR-0078)
2026-04-28 11:31:12 +07:00
dab246 2a666056c2 TF-4268 Refactor app runner: split web/mobile runners, add platform error handlers 2026-04-09 14:16:41 +07:00