get rid of prints
This commit is contained in:
parent
317b5a8dae
commit
0aaf00f803
|
@ -497,7 +497,6 @@ class TransitServerState(object):
|
||||||
@_machine.output()
|
@_machine.output()
|
||||||
def _count_bytes(self, data):
|
def _count_bytes(self, data):
|
||||||
self._total_sent += len(data)
|
self._total_sent += len(data)
|
||||||
print("COUNT BYTES +{} now {}".format(len(data), self._total_sent))
|
|
||||||
|
|
||||||
@_machine.output()
|
@_machine.output()
|
||||||
def _send(self, data):
|
def _send(self, data):
|
||||||
|
@ -523,7 +522,6 @@ class TransitServerState(object):
|
||||||
# some outputs to record "usage" information ..
|
# some outputs to record "usage" information ..
|
||||||
@_machine.output()
|
@_machine.output()
|
||||||
def _record_usage(self):
|
def _record_usage(self):
|
||||||
print("RECORD", self, self._mood, self._total_sent)
|
|
||||||
if self._mood == "jilted":
|
if self._mood == "jilted":
|
||||||
if self._buddy:
|
if self._buddy:
|
||||||
if self._buddy._mood == "happy":
|
if self._buddy._mood == "happy":
|
||||||
|
|
|
@ -217,7 +217,6 @@ class WebSocketTransitConnection(WebSocketServerProtocol):
|
||||||
"""
|
"""
|
||||||
ITransitClient API
|
ITransitClient API
|
||||||
"""
|
"""
|
||||||
print("send: {}".format(repr(data)))
|
|
||||||
self.sendMessage(data, isBinary=True)
|
self.sendMessage(data, isBinary=True)
|
||||||
|
|
||||||
def disconnect(self):
|
def disconnect(self):
|
||||||
|
@ -256,7 +255,6 @@ class WebSocketTransitConnection(WebSocketServerProtocol):
|
||||||
"""
|
"""
|
||||||
IProtocol API
|
IProtocol API
|
||||||
"""
|
"""
|
||||||
print("connectionMade")
|
|
||||||
super(WebSocketTransitConnection, self).connectionMade()
|
super(WebSocketTransitConnection, self).connectionMade()
|
||||||
self.started_time = time.time()
|
self.started_time = time.time()
|
||||||
self._first_message = True
|
self._first_message = True
|
||||||
|
@ -281,7 +279,6 @@ class WebSocketTransitConnection(WebSocketServerProtocol):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"All messages must be binary"
|
"All messages must be binary"
|
||||||
)
|
)
|
||||||
# print("onMessage isBinary={}: {}".format(isBinary, payload))
|
|
||||||
if self._first_message:
|
if self._first_message:
|
||||||
self._first_message = False
|
self._first_message = False
|
||||||
token = None
|
token = None
|
||||||
|
@ -311,6 +308,4 @@ class WebSocketTransitConnection(WebSocketServerProtocol):
|
||||||
"""
|
"""
|
||||||
IWebSocketChannel API
|
IWebSocketChannel API
|
||||||
"""
|
"""
|
||||||
print("{} onClose: {} {} {}".format(id(self), wasClean, code, reason))
|
|
||||||
self._state.connection_lost()
|
self._state.connection_lost()
|
||||||
# XXX "transit finished", etc
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user