Skip to content

Commit

Permalink
feat(sample_project): enable debug logging
Browse files Browse the repository at this point in the history
Closes: #1252
  • Loading branch information
b1rger committed Oct 2, 2024
1 parent 8eb0447 commit 20ace0e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sample_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,23 @@
SPECTACULAR_SETTINGS = {
"DEFAULT_GENERATOR_CLASS": "apis_core.generic.generators.CustomSchemaGenerator"
}

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"verbose": {
"format": "%(asctime)s %(name)-6s %(levelname)-8s %(message)s",
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "verbose",
},
},
"root": {
"handlers": ["console"],
"level": "DEBUG",
},
}

0 comments on commit 20ace0e

Please sign in to comment.