docs: def log_exception(self, exc_info):
          """Log exception only if Sentry is not used (this avoids getting error
          twice in Sentry)."""
          dsn = self.config.get("SENTRY_DSN")
          if not dsn:
              super().log_exception(exc_info)