Skip to content

Commit

Permalink
[Debug] Add Debug logging to Django loggers (#4131)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchhablani authored Aug 14, 2023
1 parent e32a477 commit b281382
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,24 @@
},
},
"loggers": {
"django": {"handlers": ["console"], "propagate": False},
"django": {
"handlers": ["console"],
"level": "DEBUG",
"propagate": False
},
"django.request": {
"handlers": ["mail_admins", "console"],
"level": "ERROR",
"level": "DEBUG",
"propagate": False,
},
"django.security": {
"handlers": ["mail_admins", "console"],
"level": "ERROR",
"level": "DEBUG",
"propagate": False,
},
"django.db.backends": {
"handlers": ["mail_admins", "console"],
"level": "ERROR",
"level": "DEBUG",
"propagate": False,
},
},
Expand Down

0 comments on commit b281382

Please sign in to comment.