repmgrd: log whether in standby or witness monitor loop

This is mainly for development and debugging purposes.
This commit is contained in:
Ian Barwick
2016-06-29 10:31:57 +09:00
parent 968c2f1954
commit 74f6f97f26

View File

@@ -460,16 +460,16 @@ main(int argc, char **argv)
do
{
log_verbose(LOG_DEBUG, "standby check loop...\n");
if (node_info.type == WITNESS)
{
witness_monitor();
}
else if (node_info.type == STANDBY)
if (node_info.type == STANDBY)
{
log_verbose(LOG_DEBUG, "standby check loop...\n");
standby_monitor();
}
else if (node_info.type == WITNESS)
{
log_verbose(LOG_DEBUG, "witness check loop...\n");
witness_monitor();
}
sleep(local_options.monitor_interval_secs);