Skip to content

Instantly share code, notes, and snippets.

View pardo's full-sized avatar
🗒️
The documentation is my Bible

Andres Pardini pardo

🗒️
The documentation is my Bible
  • La Plata
View GitHub Profile
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error.
# See http://docs.djangoproject.com/en/dev/topics/logging for
# more details on how to customize your logging configuration.
from django.core.exceptions import SuspiciousOperation
def skip_suspicious_operations(record):
if record.exc_info:
exc_value = record.exc_info[1]