From a8cca6026e992d9b627c7dbee5f8a50bde507a94 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 30 May 2022 07:18:57 +0200 Subject: logging: Also add the command prefix to detail and hint messages This makes the output line up better and allows filtering messages by command. Discussion: https://www.postgresql.org/message-id/ba6d4fac-9e33-91f9-94fb-1e4c144a48b9@enterprisedb.com --- src/common/logging.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/common/logging.c') diff --git a/src/common/logging.c b/src/common/logging.c index 0b5bcb1a172..64604c52096 100644 --- a/src/common/logging.c +++ b/src/common/logging.c @@ -246,8 +246,7 @@ pg_log_generic_v(enum pg_log_level level, enum pg_log_part part, fmt = _(fmt); - if (part == PG_LOG_PRIMARY && - (!(log_flags & PG_LOG_FLAG_TERSE) || filename)) + if (!(log_flags & PG_LOG_FLAG_TERSE) || filename) { if (sgr_locus) fprintf(stderr, ANSI_ESCAPE_FMT, sgr_locus); -- cgit v1.2.3