Skip to content

Commit

Permalink
added db layer logging in console
Browse files Browse the repository at this point in the history
  • Loading branch information
introkun committed Apr 2, 2024
1 parent f4e8851 commit 6e4f24e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ class CustomPublicMediaStorage(S3Storage):
},
},
"handlers": {"console": {"class": "logging.StreamHandler", "formatter": "simple"}},
"loggers": {
"django.db.backends": {
"handlers": ["console"],
"level": get_var("DJANGO_LOG_LEVEL", default="INFO"),
},
},
"root": {
"handlers": ["console"],
"level": get_var("DJANGO_LOG_LEVEL", default="INFO"),
Expand Down

0 comments on commit 6e4f24e

Please sign in to comment.