Commit 97941e5
fix(worker): log auto top-up card declines at warn
Card declines (insufficient funds, generic_decline, expired cards, etc.)
are an expected outcome of an off-session auto top-up, not a server
error. Detect StripeCardError and log it at warn level so it no longer
triggers ERROR-severity alerts; genuine Stripe failures still log at
error level.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bae7652 commit 97941e5
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
| 574 | + | |
576 | 575 | | |
577 | 576 | | |
578 | | - | |
579 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
580 | 590 | | |
581 | 591 | | |
582 | 592 | | |
| |||
0 commit comments