Skip to content

Instantly share code, notes, and snippets.

@igorkramaric
Created January 20, 2016 17:03
Show Gist options
  • Save igorkramaric/3080d1e5680d02549b9c to your computer and use it in GitHub Desktop.
Save igorkramaric/3080d1e5680d02549b9c to your computer and use it in GitHub Desktop.
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'filters': {
'require_debug_true': {
'()': 'django.utils.log.RequireDebugTrue',
}
},
'handlers': {
'console': {
'level': 'DEBUG',
'filters': ['require_debug_true'],
'class': 'logging.StreamHandler',
}
},
'loggers': {
'django.db.backends': {
'level': 'DEBUG',
'handlers': ['console'],
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment