From b79c961d6b45439ebb43472fda4ba21d719b0caf Mon Sep 17 00:00:00 2001 From: Rub21 Date: Thu, 16 May 2024 16:00:53 +0000 Subject: [PATCH] enable db api logs - staging --- images/db/config/postgresql.staging.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/images/db/config/postgresql.staging.conf b/images/db/config/postgresql.staging.conf index 36ea8ba8..93b7a906 100644 --- a/images/db/config/postgresql.staging.conf +++ b/images/db/config/postgresql.staging.conf @@ -474,7 +474,7 @@ min_wal_size = 80MB # - When to Log - -#log_min_messages = warning # values in order of decreasing detail: +log_min_messages = debug1 # values in order of decreasing detail: # debug5 # debug4 # debug3 @@ -502,7 +502,7 @@ min_wal_size = 80MB # fatal # panic (effectively off) -#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements +log_min_duration_statement = '1000' # log queries that take longer than 1000ms (1 second) # and their durations, > 0 logs only # statements running at least this number # of milliseconds @@ -534,9 +534,9 @@ min_wal_size = 80MB # actions running at least this number # of milliseconds. #log_checkpoints = off -#log_connections = off -#log_disconnections = off -#log_duration = off +log_connections = on +log_disconnections = on +log_duration = on #log_error_verbosity = default # terse, default, or verbose messages #log_hostname = off #log_line_prefix = '%m [%p] ' # special values: @@ -674,7 +674,7 @@ log_timezone = 'Etc/UTC' #default_transaction_read_only = off #default_transaction_deferrable = off #session_replication_role = 'origin' -#statement_timeout = 0 # in milliseconds, 0 is disabled +statement_timeout = 600 # in milliseconds, 0 is disabled #lock_timeout = 0 # in milliseconds, 0 is disabled #idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled #idle_session_timeout = 0 # in milliseconds, 0 is disabled