mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
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
This commit is contained in:
parent
e5eba10d79
commit
d8ec5ebaea
@ -437,6 +437,7 @@ error:
|
|||||||
*/
|
*/
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
pg_logging_config(PG_LOG_FLAG_TERSE);
|
||||||
connection_warnings(true);
|
connection_warnings(true);
|
||||||
if (!pset.quiet)
|
if (!pset.quiet)
|
||||||
printf(_("Type \"help\" for help.\n\n"));
|
printf(_("Type \"help\" for help.\n\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user