From fd6ece306d5bda9ac1be0dc248eba6eeb2421c0c Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Fri, 2 Jun 2023 14:29:50 -0400 Subject: [PATCH] Log to stderr by turning off the log file collector Fixes https://github.com/ManageIQ/container-postgresql/issues/40 --- .../api/v1alpha1/helpers/miq-components/postgresql_conf.go | 4 ++++ 1 file changed, 4 insertions(+) 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..d60c69744 100644 --- a/manageiq-operator/api/v1alpha1/helpers/miq-components/postgresql_conf.go +++ b/manageiq-operator/api/v1alpha1/helpers/miq-components/postgresql_conf.go @@ -38,6 +38,10 @@ hot_standby = on # ERROR REPORTING AND LOGGING #------------------------------------------------------------------------------ +log_destination = 'stderr' +# This is used when logging to stderr: +logging_collector = off + log_filename = 'postgresql.log' log_rotation_age = 0 log_min_duration_statement = 5000