Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Document how to log database queries (#5301)

Dilip Bhedaa8b672cf0349
diff --git a/documentation/api/guides/index.md b/documentation/api/guides/index.md
index fd9086000..2963bd860 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 000000000..63326c930
--- /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
+```