-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document how to log database queries (#5301)
Co-authored-by: Madison Swain-Bowden <[email protected]> Co-authored-by: Dhruv Bhanushali <[email protected]>
- Loading branch information
1 parent
ba0d5e3
commit a8b672c
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ quickstart | |
test | ||
documentation | ||
debugging | ||
logging | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |