Commit 877b9f40 authored by Alan Marchiori's avatar Alan Marchiori

fixed logging

parent f183adef
......@@ -151,7 +151,7 @@ def main():
while skt == None:
skt = pakbus.open_socket(host, port, timeout)
if skt == None:
self.log.error("Failed to open socket, retry")
logging.error("Failed to open socket, retry")
#if (len(pakbus_ids) != len(metric_ids)):
......@@ -202,7 +202,7 @@ def main():
while skt == None:
skt = pakbus.open_socket(host, port, timeout)
if skt == None:
self.log.error("Failed to reopen socket, retry")
logging.error("Failed to reopen socket, retry")
except socket.error as msg:
logging.error("Socket died with: {}".format(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