repmgrd: log "promote_command" at log_level "INFO"

If repmgrd is promoting the local node, it was only logging the contents
of "promote_command" at DEBUG level; it would be useful to see this at
the default log level.

Related to GitHub #473.
This commit is contained in:
Ian Barwick
2018-07-16 15:33:10 +09:00
parent 63242e2277
commit bd58e4128c

View File

@@ -2076,7 +2076,7 @@ promote_self(void)
/* the presence of this command has been established already */
promote_command = config_file_options.promote_command;
log_debug("promote command is:\n \"%s\"",
log_info(_("promote_command is:\n \"%s\""),
promote_command);
if (log_type == REPMGR_STDERR && *config_file_options.log_file)