Skip to content

Commit

Permalink
Document how to log database queries (#5301)
Browse files Browse the repository at this point in the history
Co-authored-by: Madison Swain-Bowden <[email protected]>
Co-authored-by: Dhruv Bhanushali <[email protected]>
  • Loading branch information
3 people authored Jan 2, 2025
1 parent ba0d5e3 commit a8b672c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions documentation/api/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ quickstart
test
documentation
debugging
logging
```
9 changes: 9 additions & 0 deletions documentation/api/guides/logging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Debugging Database Queries

To log all database queries, add the following variables to your `api/.env`
file:

```shell
DJANGO_LOG_LEVEL=DEBUG
DJANGO_DATABASE_LOGGING=True
```

0 comments on commit a8b672c

Please sign in to comment.