From 8491d0b944538572e6e9148459497bc15ecf6a3e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 15 Dec 2019 18:43:51 +0100 Subject: [PATCH] Web: Lower log level when title could not be found. --- plugins/Web/plugin.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 31cd4ee3e..20908e916 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -157,7 +157,8 @@ class Web(callbacks.PluginRegexp): irc.error(_('That URL raised <' + str(e)) + '>', Raise=True) else: - self.log.info('Web plugin TitleSnarfer: URL <%s> raised <%s>', url, str(e)) + self.log.info('Web plugin TitleSnarfer: URL <%s> raised <%s>', + url, str(e)) return try: text = text.decode(utils.web.getEncoding(text) or 'utf8', @@ -193,11 +194,12 @@ class Web(callbacks.PluginRegexp): 'within the first %S.'), size), Raise=True) else: if len(text) < size: - self.log.info('Web plugin TitleSnarfer: URL <%s> appears' - ' to have no HTML title. ', url) + self.log.debug('Web plugin TitleSnarfer: URL <%s> appears ' + 'to have no HTML title. ', url) else: - self.log.info('Web plugin TitleSnarfer: URL <%s> appears to have no HTML title' - ' within the first %S.', url, size) + self.log.debug('Web plugin TitleSnarfer: URL <%s> appears ' + 'to have no HTML title within the first %S.', + url, size) @fetch_sandbox def titleSnarfer(self, irc, msg, match):