summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-29 10:10:50 +0800
committerTeddy <[email protected]>2013-08-29 10:10:50 +0800
commit890bf816a2063ff9b8b0b3c943f9fe8c572130a9 (patch)
tree7b5eae846ed6ade333064f0c3a875ab23fd12444
parent016af459bb7148e6115e9013107f583b67c14469 (diff)
...
-rw-r--r--server/piztor/server.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/piztor/server.py b/server/piztor/server.py
index ae79c76..ab352a0 100644
--- a/server/piztor/server.py
+++ b/server/piztor/server.py
@@ -103,12 +103,11 @@ class PushTunnel(object):
def push(self):
print "Pushing via " + str(self)
print "Pending size: " + str(len(self.pending))
- print self.conn
+ logger.info("Pushing...")
if (self.conn is None) or len(self.pending) == 0:
return
front = self.pending.popleft()
self.pending.appendleft(front)
- print get_hex(front.data)
self.conn.transport.write(front.data)
def connect(self, conn):
@@ -119,7 +118,6 @@ class PushTunnel(object):
def on_connection_lost(self, conn):
if conn == self.conn:
- print "*** clear conn ***"
self.conn = None
class RequestHandler(object):