From f0412d1cc2e8d1dd9509acea7652dae8f6e11c53 Mon Sep 17 00:00:00 2001 From: idelcano Date: Fri, 8 Aug 2025 14:59:43 +0200 Subject: [PATCH 1/2] Added how execute postgres logs --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0b1c2b8..1bd8917 100644 --- a/README.md +++ b/README.md @@ -346,6 +346,7 @@ By default, d2-docker logs all SQL queries executed (one file per weekday). Exam $ db_container="d2-docker-docker-eyeseetea-com-samaritans-40-4-0-sp-cpr-test-db-1" $ docker exec -it "$db_container" tail -f /var/lib/postgresql/data/log/queries-Thu.log ``` +To enable this logging, start your instance with the --enable-postgres-queries-logging option. ### API Server From 9e7660cd4359feb1a962cfc24f02849643cdb0d8 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Bautista Date: Fri, 3 Oct 2025 15:38:23 +0200 Subject: [PATCH 2/2] Update README.md Re-worded for clarification --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1bd8917..d2e816c 100644 --- a/README.md +++ b/README.md @@ -340,13 +340,13 @@ $ bash build-docker-container.sh ## Debug SQL queries -By default, d2-docker logs all SQL queries executed (one file per weekday). Example: +To enable SQL-query logging, start your instance with the --enable-postgres-queries-logging option. +d2-docker will log all SQL queries executed to a log named with the weekday. Example: ``` $ db_container="d2-docker-docker-eyeseetea-com-samaritans-40-4-0-sp-cpr-test-db-1" $ docker exec -it "$db_container" tail -f /var/lib/postgresql/data/log/queries-Thu.log ``` -To enable this logging, start your instance with the --enable-postgres-queries-logging option. ### API Server