mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Web: Lower log level when title could not be found.
This commit is contained in:
parent
dc2068deca
commit
8491d0b944
@ -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'
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user