Commit Graph

17 Commits

Author SHA1 Message Date
Klaas van Schelven
6fbff70347 format_exception in capture_or_log_exception: drop python 3.9 compat
reverts (the meat of) c51051dc2e
2025-04-26 11:38:18 +02:00
Klaas van Schelven
c51051dc2e format_exception in capture_or_log_exception: python 3.9 compatible 2025-04-26 10:47:16 +02:00
Klaas van Schelven
ebd7d8075b Add test for test_capture_or_log_exception
this test is assumed to surface problems on Python<3.10
2025-04-26 10:24:49 +02:00
Klaas van Schelven
1084796763 When not dogfooding, just print a regular stacktrace in the logs
This will hopefully help when getting issue-reports for those that
have not set up dogfooding.

See [Dogfooding Bugsink](https://www.bugsink.com/docs/dogfooding/)
2025-04-11 13:22:37 +02:00
Klaas van Schelven
98a2ab9054 Remove nohub/CaptureExceptionMiddleware
these were development-tools in the 'cornless' disposable web-server style;
not using them now, and if I ever need them back I'll dig them out of the git history.

see https://www.bugsink.com/blog/disposable-web-servers/
2025-03-19 10:18:03 +01:00
Klaas van Schelven
ff11b29e1b MoreLoudlyFailingTransport: avoid infinite recursion
since logger.error tries to use sentry in typical setups, using that to report
trouble with sentry is not a good idea
2025-02-17 15:31:04 +01:00
Klaas van Schelven
15126018e6 Set (modern equivalent of) TEMPLATE_DEBUG=True 2024-12-12 13:53:53 +01:00
Klaas van Schelven
e6d27e881f Add process_django_templates to nohup.py 2024-05-27 13:54:02 +02:00
Klaas van Schelven
a6123e22ac Fail more loudly when sentry sdk experiences network troubles 2024-05-27 13:54:02 +02:00
Klaas van Schelven
4c48376b5f nohub implementations should never cause Exceptions themselves 2024-05-27 13:54:02 +02:00
Klaas van Schelven
049053cc51 sentry_sdk_extension: nohub 2024-05-27 13:54:02 +02:00
Klaas van Schelven
4709ba9f91 capture_stacktrace_using_exceptions works thanks to SO 2024-03-16 21:10:40 +01:00
Klaas van Schelven
ae6080e6f9 capture_stacktrace in a way that's useful 2024-03-16 15:39:15 +01:00
Klaas van Schelven
376dfeabe4 Yet another attempt at capture_stacktrace
unfortunately, no stacktrace is actually captured
2024-03-16 15:12:47 +01:00
Klaas van Schelven
80cb1b0d23 Fix capture_stacktrace, and document that this is quite useless 2024-03-15 20:58:59 +01:00
Klaas van Schelven
52bb5a253b Introduce capture_stacktrace_2 2024-03-15 20:36:10 +01:00
Klaas van Schelven
4a3c98c74f implement capture_stacktrace; use it for capturing unexpected situations with envelope handling 2024-02-07 23:07:49 +01:00