mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-05-13 18:07:25 +02: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)) + '>',
|
irc.error(_('That URL raised <' + str(e)) + '>',
|
||||||
Raise=True)
|
Raise=True)
|
||||||
else:
|
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
|
return
|
||||||
try:
|
try:
|
||||||
text = text.decode(utils.web.getEncoding(text) or 'utf8',
|
text = text.decode(utils.web.getEncoding(text) or 'utf8',
|
||||||
@ -193,11 +194,12 @@ class Web(callbacks.PluginRegexp):
|
|||||||
'within the first %S.'), size), Raise=True)
|
'within the first %S.'), size), Raise=True)
|
||||||
else:
|
else:
|
||||||
if len(text) < size:
|
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)
|
'to have no HTML title. ', url)
|
||||||
else:
|
else:
|
||||||
self.log.info('Web plugin TitleSnarfer: URL <%s> appears to have no HTML title'
|
self.log.debug('Web plugin TitleSnarfer: URL <%s> appears '
|
||||||
' within the first %S.', url, size)
|
'to have no HTML title within the first %S.',
|
||||||
|
url, size)
|
||||||
|
|
||||||
@fetch_sandbox
|
@fetch_sandbox
|
||||||
def titleSnarfer(self, irc, msg, match):
|
def titleSnarfer(self, irc, msg, match):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user