From 439c5f18c354036b224244b8ffc0bfb4ce76f269 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 11 Jul 2019 20:11:05 -0400 Subject: [PATCH] Add router_state to output of keepalives --- node-daemon/pvcd/Daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node-daemon/pvcd/Daemon.py b/node-daemon/pvcd/Daemon.py index c7e75623..aed4543f 100644 --- a/node-daemon/pvcd/Daemon.py +++ b/node-daemon/pvcd/Daemon.py @@ -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'