mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Use errmsg_internal for debug messages
An inconsistent set of debug-level messages was not using errmsg_internal(), thus uselessly exposing the messages to translation work. Fix those.
This commit is contained in:
@ -353,7 +353,7 @@ SocketBackend(StringInfo inBuf)
|
||||
whereToSendOutput = DestNone;
|
||||
ereport(DEBUG1,
|
||||
(errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST),
|
||||
errmsg("unexpected EOF on client connection")));
|
||||
errmsg_internal("unexpected EOF on client connection")));
|
||||
}
|
||||
return qtype;
|
||||
}
|
||||
@ -389,7 +389,7 @@ SocketBackend(StringInfo inBuf)
|
||||
whereToSendOutput = DestNone;
|
||||
ereport(DEBUG1,
|
||||
(errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST),
|
||||
errmsg("unexpected EOF on client connection")));
|
||||
errmsg_internal("unexpected EOF on client connection")));
|
||||
}
|
||||
return EOF;
|
||||
}
|
||||
@ -416,7 +416,7 @@ SocketBackend(StringInfo inBuf)
|
||||
whereToSendOutput = DestNone;
|
||||
ereport(DEBUG1,
|
||||
(errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST),
|
||||
errmsg("unexpected EOF on client connection")));
|
||||
errmsg_internal("unexpected EOF on client connection")));
|
||||
}
|
||||
return EOF;
|
||||
}
|
||||
@ -1375,7 +1375,7 @@ exec_parse_message(const char *query_string, /* string to execute */
|
||||
ResetUsage();
|
||||
|
||||
ereport(DEBUG2,
|
||||
(errmsg("parse %s: %s",
|
||||
(errmsg_internal("parse %s: %s",
|
||||
*stmt_name ? stmt_name : "<unnamed>",
|
||||
query_string)));
|
||||
|
||||
@ -1631,7 +1631,7 @@ exec_bind_message(StringInfo input_message)
|
||||
stmt_name = pq_getmsgstring(input_message);
|
||||
|
||||
ereport(DEBUG2,
|
||||
(errmsg("bind %s to %s",
|
||||
(errmsg_internal("bind %s to %s",
|
||||
*portal_name ? portal_name : "<unnamed>",
|
||||
*stmt_name ? stmt_name : "<unnamed>")));
|
||||
|
||||
@ -3092,7 +3092,7 @@ ProcessInterrupts(void)
|
||||
else if (IsLogicalLauncher())
|
||||
{
|
||||
ereport(DEBUG1,
|
||||
(errmsg("logical replication launcher shutting down")));
|
||||
(errmsg_internal("logical replication launcher shutting down")));
|
||||
|
||||
/*
|
||||
* The logical replication launcher can be stopped at any time.
|
||||
|
Reference in New Issue
Block a user