Commit ad32024
committed
fix: remove double-logging from capture_exception -- saves log ingestion cost
capture_exception() was calling logger.error() internally, but every
caller (50 call sites) also calls logger.error() before/after it.
Result: every error printed to stdout twice, doubling log volume for
errors in production log aggregators.
Now capture_exception() only sends to Sentry. Callers handle their
own logging. Fallback logger.error() only fires when Sentry SDK is
not installed (so errors aren't silently lost in local dev).
284 tests pass.1 parent 84d7cee commit ad32024
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 160 | + | |
| 161 | + | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
169 | 168 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 169 | | |
177 | | - | |
| 170 | + | |
| 171 | + | |
178 | 172 | | |
179 | 173 | | |
180 | 174 | | |
| |||
0 commit comments