Commit c395232
committed
Remove stack traces from intentional 4xx exception logging
ForbiddenError403, BadRequestError400, and MultiPartParserError are
intentional error responses, not unexpected failures. Logging them with
exc_info produced misleading stack traces that looked like bugs and
created noise in error tracking tools like Sentry.
Keep the WARNING messages (they have diagnostic value) but drop the
stack traces, consistent with how FormFieldMissingError already works.
SuspiciousOperationError400 and unhandled 500s retain their stack traces.1 parent d083155 commit c395232
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
63 | | - | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
| |||
0 commit comments