mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +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:
@@ -282,7 +282,7 @@ logicalrep_worker_launch(Oid dbid, Oid subid, const char *subname, Oid userid,
|
||||
TimestampTz now;
|
||||
|
||||
ereport(DEBUG1,
|
||||
(errmsg("starting logical replication worker for subscription \"%s\"",
|
||||
(errmsg_internal("starting logical replication worker for subscription \"%s\"",
|
||||
subname)));
|
||||
|
||||
/* Report this after the initial starting message for consistency. */
|
||||
@@ -805,7 +805,7 @@ ApplyLauncherMain(Datum main_arg)
|
||||
TimestampTz last_start_time = 0;
|
||||
|
||||
ereport(DEBUG1,
|
||||
(errmsg("logical replication launcher started")));
|
||||
(errmsg_internal("logical replication launcher started")));
|
||||
|
||||
before_shmem_exit(logicalrep_launcher_onexit, (Datum) 0);
|
||||
|
||||
|
@@ -425,7 +425,7 @@ SyncRepInitConfig(void)
|
||||
SpinLockRelease(&MyWalSnd->mutex);
|
||||
|
||||
ereport(DEBUG1,
|
||||
(errmsg("standby \"%s\" now has synchronous standby priority %u",
|
||||
(errmsg_internal("standby \"%s\" now has synchronous standby priority %u",
|
||||
application_name, priority)));
|
||||
}
|
||||
}
|
||||
|
@@ -2319,7 +2319,7 @@ WalSndLoop(WalSndSendDataCallback send_data)
|
||||
if (MyWalSnd->state == WALSNDSTATE_CATCHUP)
|
||||
{
|
||||
ereport(DEBUG1,
|
||||
(errmsg("\"%s\" has now caught up with upstream server",
|
||||
(errmsg_internal("\"%s\" has now caught up with upstream server",
|
||||
application_name)));
|
||||
WalSndSetState(WALSNDSTATE_STREAMING);
|
||||
}
|
||||
|
Reference in New Issue
Block a user