This should fixed the problem with error.message #45

parent ef2cb6fa
......@@ -166,11 +166,11 @@ class StompClient():
except Exception as e:
# if the heartbeat failed we close the connection
# this put the client in the correct DISCONNECTED state
self.LOG.warn("Missed a heartBeat. error=%s beamline=%s" % str(e.message, self.beamlineID))
try:
self.LOG.warn("Missed a heartBeat. beamline=%s" % str(self.beamlineID))
self.client.close(True)
except:
pass
pass
else:
self.LOG.info("Heart beat changed, will disconnect")
self.client.disconnect()
......
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