From b28a762719755b23bcb1b33f8f61e8781f2a032d Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Wed, 23 Jun 2021 00:01:38 +0300 Subject: [PATCH] Log all queries by default in the container db --- scripts/start-dev-db.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/start-dev-db.sh b/scripts/start-dev-db.sh index 36ba6b1d..69e6a47d 100755 --- a/scripts/start-dev-db.sh +++ b/scripts/start-dev-db.sh @@ -14,7 +14,9 @@ echo "echo stop & remove old docker [$SERVER] and starting new fresh instance of docker run --name $SERVER -e POSTGRES_PASSWORD=$DATABASE_PASSWORD \ -e PGPASSWORD=$DATABASE_PASSWORD \ -p 5432:5432 \ - -d postgres + -d postgres \ + -c log_statement=all \ + -c log_destination=stderr # wait for pg to start echo "sleep wait for pg-server [$SERVER] to start";