Commit 1a194290 authored by 唐香港's avatar 唐香港

Update alarm_kafka_connect_v2.py

parent 0353542b
...@@ -81,6 +81,7 @@ def get_kafka_connectors_status(cmd): ...@@ -81,6 +81,7 @@ def get_kafka_connectors_status(cmd):
try: try:
result = run_command(cmd, timeout) result = run_command(cmd, timeout)
result = result.decode() result = result.decode()
logging.info(result)
if 'Could not resolve host' in result: if 'Could not resolve host' in result:
msg = '\n- **error_msg**: Could not resolve host %s' % (cmd) msg = '\n- **error_msg**: Could not resolve host %s' % (cmd)
raise Exception(msg) raise Exception(msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment