From b50b60d2f1df569d9f8a169c0769af3dacff0f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bojl=C3=A9n?= Date: Mon, 13 Jul 2026 15:09:16 +0100 Subject: [PATCH] ci: stop logging every DB query in test runs (#888) * ci: stop logging every DB query in test runs Set DATABASE_PRINT_LOGS=false in .env.githubci (used by the docker-compose `test` service for unit/integration tests) and comment it out in server/.env.example (copied to server/.env by the e2e workflow) so the default is off. Kysely still logs query errors regardless, so failures remain visible; this only suppresses the per-query SQL/params/duration spam that made CI logs unreadable. Co-Authored-By: pi * ci: drop redundant comment in server/.env.example Co-Authored-By: pi --------- Co-authored-by: pi Co-authored-by: Cassidy James --- .env.githubci | 2 +- server/.env.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.githubci b/.env.githubci index 16cc268..57acd31 100644 --- a/.env.githubci +++ b/.env.githubci @@ -50,7 +50,7 @@ SCYLLA_HAS_ENTERPRISE_FEATURES='false' GRAPHQL_MAX_DEPTH=10 EXPOSE_SENSITIVE_IMPLEMENTATION_DETAILS_IN_ERRORS=true ALLOW_USER_INPUT_LOCALHOST_URIS=true -DATABASE_PRINT_LOGS=true +DATABASE_PRINT_LOGS=false GROQ_SECRET_KEY= diff --git a/server/.env.example b/server/.env.example index 774142a..f91cf6e 100644 --- a/server/.env.example +++ b/server/.env.example @@ -33,7 +33,7 @@ DATABASE_IDLE_IN_TRANSACTION_TIMEOUT_MS=300000 # Delay (ms) before sending the first keepalive probe. Unset => OS default. # DATABASE_KEEPALIVE_INITIAL_DELAY_MS=0 # Log every Kysely query (SQL, params, duration). Errors always log regardless. -DATABASE_PRINT_LOGS=true +# DATABASE_PRINT_LOGS=true # Used to sign session ids in cookies. -- 2.51.2