Commented out some useless debug logs.

This commit is contained in:
Jeremy Fincher 2004-02-16 08:10:50 +00:00
parent 4f84303759
commit f752ad5747
3 changed files with 5 additions and 8 deletions

View File

@ -50,7 +50,7 @@ import schedule
class AsyncoreRunnerDriver(drivers.IrcDriver):
def run(self):
log.debug(repr(asyncore.socket_map))
#log.debug(repr(asyncore.socket_map))
try:
asyncore.poll(conf.supybot.drivers.poll())
except:
@ -99,7 +99,7 @@ class AsyncoreDriver(asynchat.async_chat, object):
def found_terminator(self):
start = time.time()
msg = ircmsgs.IrcMsg(self.buffer)
log.debug('Time to parse IrcMsg: %s', time.time()-start)
#log.debug('Time to parse IrcMsg: %s', time.time()-start)
self.buffer = ''
try:
self.irc.feedMsg(msg)

View File

@ -106,7 +106,7 @@ class SocketDriver(drivers.IrcDriver):
for line in lines:
start = time.time()
msg = ircmsgs.IrcMsg(line)
log.debug('Time to parse IrcMsg: %s', time.time()-start)
#log.debug('Time to parse IrcMsg: %s', time.time()-start)
try:
self.irc.feedMsg(msg)
except:

View File

@ -61,11 +61,8 @@ class SupyIrcProtocol(LineReceiver):
def lineReceived(self, line):
start = time.time()
msg = ircmsgs.IrcMsg(line)
log.debug('Time to parse IrcMsg: %s', time.time()-start)
try:
self.irc.feedMsg(msg)
except:
log.exception('Uncaught exception outside Irc object:')
#log.debug('Time to parse IrcMsg: %s', time.time()-start)
self.irc.feedMsg(msg)
def checkIrcForMsgs(self):
if self.connected: