Skip to content

Commit

Permalink
Docs: add database queries log documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dilipbheda committed Dec 25, 2024
1 parent 347878a commit 3a03d68
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions documentation/api/guides/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,12 @@ This is the guide to debugging the API using VS Code. This uses Microsoft's
[Visual Code debugger's official instructions](https://code.visualstudio.com/docs/editor/debugging)
to better understand how to use the debugger interface to accomplish tasks
like setting breakpoints, watching variables etc.

## Debugging Database Queries

To log all database queries, add the following `env` variables to your configuration

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

0 comments on commit 3a03d68

Please sign in to comment.