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): class AsyncoreRunnerDriver(drivers.IrcDriver):
def run(self): def run(self):
log.debug(repr(asyncore.socket_map)) #log.debug(repr(asyncore.socket_map))
try: try:
asyncore.poll(conf.supybot.drivers.poll()) asyncore.poll(conf.supybot.drivers.poll())
except: except:
@ -99,7 +99,7 @@ class AsyncoreDriver(asynchat.async_chat, object):
def found_terminator(self): def found_terminator(self):
start = time.time() start = time.time()
msg = ircmsgs.IrcMsg(self.buffer) 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 = '' self.buffer = ''
try: try:
self.irc.feedMsg(msg) self.irc.feedMsg(msg)

View File

@ -106,7 +106,7 @@ class SocketDriver(drivers.IrcDriver):
for line in lines: for line in lines:
start = time.time() start = time.time()
msg = ircmsgs.IrcMsg(line) 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: try:
self.irc.feedMsg(msg) self.irc.feedMsg(msg)
except: except:

View File

@ -61,11 +61,8 @@ class SupyIrcProtocol(LineReceiver):
def lineReceived(self, line): def lineReceived(self, line):
start = time.time() start = time.time()
msg = ircmsgs.IrcMsg(line) 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) self.irc.feedMsg(msg)
except:
log.exception('Uncaught exception outside Irc object:')
def checkIrcForMsgs(self): def checkIrcForMsgs(self):
if self.connected: if self.connected: