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

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