Add log message
This commit is contained in:
parent
092541b7fb
commit
aea3931546
|
@ -157,6 +157,7 @@ class zk():
|
||||||
re_mode = re.compile(r'^Mode:\s*(.+?)\s*$')
|
re_mode = re.compile(r'^Mode:\s*(.+?)\s*$')
|
||||||
|
|
||||||
for address in address_list:
|
for address in address_list:
|
||||||
|
logging.info("Probing zookeeper at address: " + address)
|
||||||
cmd = 'echo stat | nc ' + address + ' 2181'
|
cmd = 'echo stat | nc ' + address + ' 2181'
|
||||||
p = Popen(['/bin/sh', '-c', cmd], stdout=PIPE, stderr=PIPE, close_fds=False)
|
p = Popen(['/bin/sh', '-c', cmd], stdout=PIPE, stderr=PIPE, close_fds=False)
|
||||||
output, error = p.communicate()
|
output, error = p.communicate()
|
||||||
|
|
Loading…
Reference in New Issue