I'm trying to filter out sensitive informations using Django's
Even if you use the
SafeExceptionReporterFilter, exceptions will still contains sensitive data (e.g. your Server's ENV variables and other runtime data).
To avoid exposing sensitive data, you should not use this filter. Instead, write your own Exception Handler Middleware and selectively(recursively?) fetch yourself the data you want in the logs.
sys.exc_info on how to obtain exception's traceback and how to use it for your needs.
Even if you go with a CustomHandler you'll be limited with a specific handler and as far as I know, third-parties handlers won't use the