leave state-machine tracing code (but commented)
This commit is contained in:
parent
786cd08350
commit
7b92c3701e
|
@ -471,6 +471,5 @@ class TransitServerState(object):
|
||||||
outputs=[],
|
outputs=[],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# uncomment to turn on state-machine tracing
|
||||||
## XXX tracing
|
# set_trace_function = _machine._setTrace
|
||||||
set_trace_function = _machine._setTrace
|
|
||||||
|
|
|
@ -74,10 +74,10 @@ class TransitConnection(LineReceiver):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if False:
|
# uncomment to turn on state-machine tracing
|
||||||
def tracer(oldstate, theinput, newstate):
|
# def tracer(oldstate, theinput, newstate):
|
||||||
print("TRACE: {}: {} --{}--> {}".format(id(self), oldstate, theinput, newstate))
|
# print("TRACE: {}: {} --{}--> {}".format(id(self), oldstate, theinput, newstate))
|
||||||
self._state.set_trace_function(tracer)
|
# self._state.set_trace_function(tracer)
|
||||||
|
|
||||||
def lineReceived(self, line):
|
def lineReceived(self, line):
|
||||||
"""
|
"""
|
||||||
|
@ -227,10 +227,10 @@ class WebSocketTransitConnection(WebSocketServerProtocol):
|
||||||
self.factory.transit.usage,
|
self.factory.transit.usage,
|
||||||
)
|
)
|
||||||
|
|
||||||
if False:
|
# uncomment to turn on state-machine tracing
|
||||||
def tracer(oldstate, theinput, newstate):
|
# def tracer(oldstate, theinput, newstate):
|
||||||
print("WSTRACE: {}: {} --{}--> {}".format(id(self), oldstate, theinput, newstate))
|
# print("WSTRACE: {}: {} --{}--> {}".format(id(self), oldstate, theinput, newstate))
|
||||||
self._state.set_trace_function(tracer)
|
# self._state.set_trace_function(tracer)
|
||||||
|
|
||||||
def onOpen(self):
|
def onOpen(self):
|
||||||
self._state.connection_made(self)
|
self._state.connection_made(self)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user