mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +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:
@@ -1413,13 +1413,13 @@ ProcSleep(LOCALLOCK *locallock, LockMethod lockMethodTable)
|
||||
initStringInfo(&logbuf);
|
||||
DescribeLockTag(&locktagbuf, &locktag_copy);
|
||||
appendStringInfo(&logbuf,
|
||||
_("Process %d waits for %s on %s."),
|
||||
"Process %d waits for %s on %s.",
|
||||
MyProcPid,
|
||||
GetLockmodeName(lockmethod_copy, lockmode),
|
||||
locktagbuf.data);
|
||||
|
||||
ereport(DEBUG1,
|
||||
(errmsg("sending cancel to blocking autovacuum PID %d",
|
||||
(errmsg_internal("sending cancel to blocking autovacuum PID %d",
|
||||
pid),
|
||||
errdetail_log("%s", logbuf.data)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user