Skip to content

Commit

Permalink
microLB: Fix some printouts after cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Dec 4, 2018
1 parent bcb6d73 commit a6cba3c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/microLB/micro_lb/balancer.cpp
Expand Up @@ -12,7 +12,7 @@
#define CONNECT_TIMEOUT 10s
#define CONNECT_THROW_PERIOD 20s

#define LB_VERBOSE 1
#define LB_VERBOSE 0
#if LB_VERBOSE
#define LBOUT(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
Expand Down Expand Up @@ -328,11 +328,13 @@ namespace microLB
this->active_timer = Timers::periodic(
ACTIVE_INITIAL_PERIOD, ACTIVE_CHECK_PERIOD,
{this, &Node::perform_active_check});
LBOUT("Node %d restarting active check (and is inactive)\n", this->m_idx);
LBOUT("Node %s restarting active check (and is inactive)\n",
this->addr.to_string().c_str());
}
else
{
LBOUT("Node %d still trying to connect...\n", this->m_idx);
LBOUT("Node %s still trying to connect...\n",
this->addr.to_string().c_str());
}
}
}
Expand Down

0 comments on commit a6cba3c

Please sign in to comment.