Add log message

This commit is contained in:
Björn Busse 2021-03-04 22:42:35 +01:00
parent 092541b7fb
commit aea3931546

View File

@ -157,6 +157,7 @@ class zk():
re_mode = re.compile(r'^Mode:\s*(.+?)\s*$')
for address in address_list:
logging.info("Probing zookeeper at address: " + address)
cmd = 'echo stat | nc ' + address + ' 2181'
p = Popen(['/bin/sh', '-c', cmd], stdout=PIPE, stderr=PIPE, close_fds=False)
output, error = p.communicate()