Skip to content

fix(sentry): stop console output from becoming breadcrumbs - #63

Merged
Renekakpo merged 1 commit into
developfrom
fix/scrub-console-breadcrumbs
Aug 19, 2026
Merged

fix(sentry): stop console output from becoming breadcrumbs#63
Renekakpo merged 1 commit into
developfrom
fix/scrub-console-breadcrumbs

Conversation

@Renekakpo

Copy link
Copy Markdown
Contributor

Why:

  • The SDK forwards console output as breadcrumbs by default, with the raw argument list attached. The app logs an instalment amount and a wallet balance when a recurring rule is skipped, per-wallet drift on import, a category name at seed time, and validation messages that interpolate the rejected value. All of it was reaching Sentry.

What:

  • A named guard drops every console-category breadcrumb before it enters the scope, which also covers native crashes since native sync patches the same scope method. It is a blanket drop, not a content filter: deciding which log line carries money is a losing game, and the guard has to protect the logs nobody has written yet. Other categories pass through by reference. Values still reach the device system log, which no Sentry-side guard can address.

Why:
- The SDK forwards console output as breadcrumbs by default, with the raw
  argument list attached. The app logs an instalment amount and a wallet balance
  when a recurring rule is skipped, per-wallet drift on import, a category name
  at seed time, and validation messages that interpolate the rejected value. All
  of it was reaching Sentry.

What:
- A named guard drops every console-category breadcrumb before it enters the
  scope, which also covers native crashes since native sync patches the same
  scope method. It is a blanket drop, not a content filter: deciding which log
  line carries money is a losing game, and the guard has to protect the logs
  nobody has written yet. Other categories pass through by reference. Values
  still reach the device system log, which no Sentry-side guard can address.
@Renekakpo
Renekakpo merged commit 2117fb5 into develop Aug 19, 2026
1 check passed
@Renekakpo
Renekakpo deleted the fix/scrub-console-breadcrumbs branch August 19, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant