From f752ad574744baed4d111d080a2330a443e07e18 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 16 Feb 2004 08:10:50 +0000 Subject: [PATCH] Commented out some useless debug logs. --- src/asyncoreDrivers.py | 4 ++-- src/socketDrivers.py | 2 +- src/twistedDrivers.py | 7 ++----- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/asyncoreDrivers.py b/src/asyncoreDrivers.py index 854ab5598..61796d426 100644 --- a/src/asyncoreDrivers.py +++ b/src/asyncoreDrivers.py @@ -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) diff --git a/src/socketDrivers.py b/src/socketDrivers.py index 9e36652d0..b207297eb 100644 --- a/src/socketDrivers.py +++ b/src/socketDrivers.py @@ -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: diff --git a/src/twistedDrivers.py b/src/twistedDrivers.py index fef4973d0..9cf8c7766 100644 --- a/src/twistedDrivers.py +++ b/src/twistedDrivers.py @@ -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: