# HG changeset patch # User Edouard Tisserant # Date 1515672129 -3600 # Node ID ff4410112b67a0d5205afb69151a428f97e35eff # Parent d2dbdeffc4266714b55cb010a4484071bb61b8cb runtime/WAMP : was 'Added time print on session left.' from dporopat. Purpose is to log (dis/re)connection, to help debugging connection problem diff -r d2dbdeffc426 -r ff4410112b67 runtime/WampClient.py --- a/runtime/WampClient.py Thu Jan 11 12:48:49 2018 +0100 +++ b/runtime/WampClient.py Thu Jan 11 13:02:09 2018 +0100 @@ -25,7 +25,7 @@ from __future__ import absolute_import from __future__ import print_function import json - +import time import os import json from autobahn.twisted import wamp @@ -113,11 +113,11 @@ class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory): def clientConnectionFailed(self, connector, reason): - print(_("WAMP Client connection failed .. retrying ..")) + print _("WAMP Client connection failed (%s) .. retrying .." %time.ctime()) ReconnectingClientFactory.clientConnectionFailed(self, connector, reason) def clientConnectionLost(self, connector, reason): - print(_("WAMP Client connection lost .. retrying ..")) + print _("WAMP Client connection lost (%s) .. retrying .." %time.ctime()) ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)