Commit e597fa8
fix(push): log every silently swallowed error
Three silent catches in the push pipeline made today's APNS_KEY=12-char
secret outage take hours to diagnose. Each one swallowed an exception
without a single log line, leaving 78 server with "Relay 502" but the
K8s pod logs completely empty:
- push.ts relay route: importPKCS8() throw was caught and turned into a
502 JSON response with no log
- bridge.ts dispatchEventPush: dynamic import failure (e.g. missing prod
dep) silently disabled all push notifications
- push.ts dispatchPush: badge_count UPDATE failure was a bare catch
All three now log via the existing pino logger so the next failure
surfaces immediately in `kubectl logs` instead of silently dropping
notifications.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 785a810 commit e597fa8
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2137 | 2137 | | |
2138 | 2138 | | |
2139 | 2139 | | |
2140 | | - | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
2141 | 2144 | | |
2142 | 2145 | | |
2143 | 2146 | | |
| |||
0 commit comments