From 20bcb697a13608c942faa72e8bf480b67a898cd2 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 4 Jan 2005 18:44:33 +0000 Subject: [PATCH] Change some info logs to debug and make sure we don't reply from a snarfer unless it's with the snarfed info. Anything else should be logged. --- plugins/Gameknot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/Gameknot.py b/plugins/Gameknot.py index a3007a72d..a04de6e41 100644 --- a/plugins/Gameknot.py +++ b/plugins/Gameknot.py @@ -177,13 +177,13 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp): return m = self._gkGameTitle.search(s) if m is None: - self.log.info('_gkGameTitle didn\'t match (%s).', url) + self.log.debug('_gkGameTitle didn\'t match (%s).', url) return gameTitle = m.groups() gameTitle = ircutils.bold(gameTitle) L = self._gkPlayer.findall(s) if not L: - self.log.info('_gkPlayer didn\'t match (%s).', url) + self.log.debug('_gkPlayer didn\'t match (%s).', url) return ((wRating, wName), (bRating, bName)) = L wName = ircutils.bold(wName) @@ -219,10 +219,10 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp): (gameTitle, wName, wStats, bName, bStats, toMove) irc.reply(s, prefixName=False) except ValueError: - s = 'That doesn\'t appear to be a proper Gameknot game.' - irc.errorPossibleBug(s) + s = '%s doesn\'t appear to be a proper Gameknot game.' % url + self.log.debug('Unable to snarf. %s' % s) except Exception, e: - irc.error(utils.exnToString(e)) + self.log.warning(utils.exnToString(e)) gameknotSnarfer = urlSnarfer(gameknotSnarfer) def gameknotStatsSnarfer(self, irc, msg, match):