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.mdindex fd9086000..2963bd860 100644--- a/documentation/api/guides/index.md+++ b/documentation/api/guides/index.md@@ -7,4 +7,5 @@ quickstarttestdocumentationdebugging+logging```diff --git a/documentation/api/guides/logging.md b/documentation/api/guides/logging.mdnew file mode 100644index 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+```