From 881c4fbe64b85e373c452038984e557a51b2756a Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Tue, 6 Jun 2023 17:25:28 -0400 Subject: [PATCH] Merge pull request #968 from jrafanie/log_to_stderr Log to stderr by turning off the log file collector (cherry picked from commit be93f4155e4c2e09fbad85e10258cbbe94ee2860) --- .../api/v1alpha1/helpers/miq-components/postgresql_conf.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manageiq-operator/api/v1alpha1/helpers/miq-components/postgresql_conf.go b/manageiq-operator/api/v1alpha1/helpers/miq-components/postgresql_conf.go index d68905f30..df28824e2 100644 --- a/manageiq-operator/api/v1alpha1/helpers/miq-components/postgresql_conf.go +++ b/manageiq-operator/api/v1alpha1/helpers/miq-components/postgresql_conf.go @@ -38,8 +38,10 @@ hot_standby = on # ERROR REPORTING AND LOGGING #------------------------------------------------------------------------------ -log_filename = 'postgresql.log' -log_rotation_age = 0 +log_destination = 'stderr' +# This is used when logging to stderr: +logging_collector = off + log_min_duration_statement = 5000 log_connections = on log_disconnections = on