Add router_state to output of keepalives

This commit is contained in:
Joshua Boniface 2019-07-11 20:11:05 -04:00
parent 0bf0721fda
commit 439c5f18c3
1 changed files with 4 additions and 1 deletions

View File

@ -1243,9 +1243,12 @@ def update_zookeeper():
# Display node information to the terminal
if config['log_keepalives']:
logger.out(
'{}{} keepalive{}'.format(
'{}{} keepalive{} [{}{}{}]'.format(
fmt_purple,
myhostname,
fmt_end,
fmt_bold,
this_node.router_state,
fmt_end
),
state='t'