Skip to content
Snippets Groups Projects
Commit 4a9592a9 authored by Alejandro De Maria Antolinos's avatar Alejandro De Maria Antolinos
Browse files

This should fixed the problem with error.message #45

parent ef2cb6fa
No related branches found
No related tags found
2 merge requests!33Issue 45,!32This should fixed the problem with error.message icat/tango-metadata#45
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment