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