diff --git a/documentation/api/guides/index.md b/documentation/api/guides/index.md index fd90860002d..2963bd8605c 100644 --- a/documentation/api/guides/index.md +++ b/documentation/api/guides/index.md @@ -7,4 +7,5 @@ quickstart test documentation debugging +logging ``` diff --git a/documentation/api/guides/logging.md b/documentation/api/guides/logging.md new file mode 100644 index 00000000000..63326c930b2 --- /dev/null +++ b/documentation/api/guides/logging.md @@ -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 +```