From 18e76f07e20c92a1a4d0f72673d66921e0217562 Mon Sep 17 00:00:00 2001 From: Tiffany Meyer Date: Wed, 30 Mar 2022 08:48:18 -0400 Subject: [PATCH] Updated postgresql log configuration to save logs with the current date and to turn off truncate_on_rotation per Jen's suggestions --- .../Installer.database/configuration/postgresql.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpms/awips2.core/Installer.database/configuration/postgresql.conf b/rpms/awips2.core/Installer.database/configuration/postgresql.conf index c010f7802d..8b6bdd2c09 100644 --- a/rpms/awips2.core/Installer.database/configuration/postgresql.conf +++ b/rpms/awips2.core/Installer.database/configuration/postgresql.conf @@ -304,11 +304,11 @@ logging_collector = on # Enable capturing of stderr and csvlog # These are only used if logging_collector is on: log_directory = 'pg_log' # directory where log files are written, # can be absolute or relative to PGDATA -log_filename = 'postgresql-%A.log' # log file name pattern, +log_filename = 'postgresql-%F.log' # log file name pattern, # can include strftime() escapes #log_file_mode = 0600 # creation mode for log files, # begin with 0 to use octal notation -log_truncate_on_rotation = on # If on, an existing log file with the +log_truncate_on_rotation = off # If on, an existing log file with the # same name as the new log file will be # truncated rather than appended to. # But such truncation only occurs on