diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-12-04 14:25:23 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-12-04 14:25:23 +0100 |
commit | eb93f3a0b633ad6afb0f37391b87f460c4b0663b (patch) | |
tree | 7590fcb99e536615cfdb89bb4698b75f6e33ec14 /src/backend/replication | |
parent | a6964bc1bb0793e20636ccb573cd2a5ad3ef7667 (diff) | |
download | postgresql-eb93f3a0b633ad6afb0f37391b87f460c4b0663b.tar.gz |
Convert elog(LOG) calls to ereport() where appropriate
User-visible log messages should go through ereport(), so they are
subject to translation. Many remaining elog(LOG) calls are really
debugging calls.
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Noah Misch <noah@leadboat.com>
Discussion: https://www.postgresql.org/message-id/flat/92d6f545-5102-65d8-3c87-489f71ea0a37%40enterprisedb.com
Diffstat (limited to 'src/backend/replication')
-rw-r--r-- | src/backend/replication/logical/origin.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/replication/logical/origin.c b/src/backend/replication/logical/origin.c index 1b220315df..15ab8e7204 100644 --- a/src/backend/replication/logical/origin.c +++ b/src/backend/replication/logical/origin.c @@ -769,10 +769,11 @@ StartupReplicationOrigin(void) replication_states[last_state].remote_lsn = disk_state.remote_lsn; last_state++; - elog(LOG, "recovered replication state of node %u to %X/%X", - disk_state.roident, - (uint32) (disk_state.remote_lsn >> 32), - (uint32) disk_state.remote_lsn); + ereport(LOG, + (errmsg("recovered replication state of node %u to %X/%X", + disk_state.roident, + (uint32) (disk_state.remote_lsn >> 32), + (uint32) disk_state.remote_lsn))); } /* now check checksum */ |