Remove redundent debug logs
This commit is contained in:
parent
0ecc89d270
commit
e94aa383bf
|
@ -4,7 +4,6 @@ import logging
|
||||||
class IOChannel(asyncore.dispatcher):
|
class IOChannel(asyncore.dispatcher):
|
||||||
def __init__(self, host, port, callback):
|
def __init__(self, host, port, callback):
|
||||||
asyncore.dispatcher.__init__(self)
|
asyncore.dispatcher.__init__(self)
|
||||||
self.logger = logging.getLogger(self.__class__.__name__)
|
|
||||||
|
|
||||||
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
|
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
self.connect((host, port))
|
self.connect((host, port))
|
||||||
|
@ -14,7 +13,6 @@ class IOChannel(asyncore.dispatcher):
|
||||||
|
|
||||||
def sendData(self, data):
|
def sendData(self, data):
|
||||||
self.buffer += data
|
self.buffer += data
|
||||||
self.logger.debug("Added Data to buffer. len(buffer) == %d", len(self.buffer))
|
|
||||||
|
|
||||||
def handle_connect(self):
|
def handle_connect(self):
|
||||||
pass
|
pass
|
||||||
|
@ -29,7 +27,6 @@ class IOChannel(asyncore.dispatcher):
|
||||||
def handle_write(self):
|
def handle_write(self):
|
||||||
sent = self.send(self.buffer)
|
sent = self.send(self.buffer)
|
||||||
self.buffer = self.buffer[sent:]
|
self.buffer = self.buffer[sent:]
|
||||||
self.logger.debug("Flush buffer. len(buffer) == %d", len(self.buffer))
|
|
||||||
|
|
||||||
def writable(self):
|
def writable(self):
|
||||||
return (len(self.buffer) > 0)
|
return (len(self.buffer) > 0)
|
||||||
|
|
Loading…
Reference in a new issue