From: Peter Eisentraut Date: Sat, 6 Jul 2019 12:58:08 +0000 (+0200) Subject: psql: Fix logging output format X-Git-Tag: REL_12_BETA3~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8ec5ebaea4455a5b19fa1bc8ec6eb299e93e835;p=postgresql psql: Fix logging output format In normal interactive mode, psql's log messages accidentally got a "psql:" prefix that was not supposed to be there. This only happened if there was no .psqlrc file being read, so it wasn't discovered for a while. Fix this by adding the appropriate logging format configuration call in the right code path. Discussion: https://www.postgresql.org/message-id/7586.1560540361@sss.pgh.pa.us --- diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index bb9921a894..4730c73396 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -437,6 +437,7 @@ error: */ else { + pg_logging_config(PG_LOG_FLAG_TERSE); connection_warnings(true); if (!pset.quiet) printf(_("Type \"help\" for help.\n\n"));