Standardize on "ID: %i" when logging node IDs

Previously there was a mix of "id:", "node id:", "node ID:" and "node_id:".
This commit is contained in:
Ian Barwick
2019-04-30 17:07:33 +09:00
parent 6c3b4c0db8
commit 52905f1eb3
8 changed files with 74 additions and 74 deletions

View File

@@ -113,7 +113,7 @@ do_primary_register(void)
{
if (get_recovery_type(primary_conn) == RECTYPE_PRIMARY)
{
log_error(_("there is already an active registered primary (node ID: %i) in this cluster"),
log_error(_("there is already an active registered primary (ID: %i) in this cluster"),
current_primary_id);
log_detail(_("a streaming replication cluster can have only one primary node"));
@@ -223,12 +223,12 @@ do_primary_register(void)
if (record_status == RECORD_FOUND)
{
log_notice(_("primary node record (id: %i) updated"),
log_notice(_("primary node record (ID: %i) updated"),
config_file_options.node_id);
}
else
{
log_notice(_("primary node record (id: %i) registered"),
log_notice(_("primary node record (ID: %i) registered"),
config_file_options.node_id);
}
@@ -357,7 +357,7 @@ do_primary_unregister(void)
for (cell = downstream_nodes.head; cell; cell = cell->next)
{
appendPQExpBuffer(&detail,
" %s (id: %i)\n",
" %s (ID: %i)\n",
cell->node_info->node_name,
cell->node_info->node_id);
}