Skip to content

Commit

Permalink
Merge pull request #909 from pqarmitage/updates
Browse files Browse the repository at this point in the history
Add log message for advert receive timeout when using log detail (-D)
  • Loading branch information
pqarmitage committed Jun 10, 2018
2 parents dc16265 + ce60b3b commit 1e57698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keepalived/vrrp/vrrp_scheduler.c
Expand Up @@ -840,8 +840,11 @@ vrrp_dispatcher_read_timeout(int fd)

prev_state = vrrp->state;

if (vrrp->state == VRRP_STATE_BACK)
if (vrrp->state == VRRP_STATE_BACK) {
if (__test_bit(LOG_DETAIL_BIT, &debug))
log_message(LOG_INFO, "(%s) Receive advertisement timeout", vrrp->iname);
vrrp_goto_master(vrrp);
}
else if (vrrp->state == VRRP_STATE_MAST)
vrrp_master(vrrp);

Expand Down

0 comments on commit 1e57698

Please sign in to comment.