Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3f35426

Browse files
committed
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
1 parent 78d41f6 commit 3f35426

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/psql/startup.c

+1
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ main(int argc, char *argv[])
437437
*/
438438
else
439439
{
440+
pg_logging_config(PG_LOG_FLAG_TERSE);
440441
connection_warnings(true);
441442
if (!pset.quiet)
442443
printf(_("Type \"help\" for help.\n\n"));

0 commit comments

Comments
 (0)