3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

clientbot: log SASL failures to warning instead of info

This commit is contained in:
James Lu 2016-12-17 15:53:46 -08:00
parent 651752d23d
commit 8b0b4bfcc4

View File

@ -467,7 +467,8 @@ class ClientbotWrapperProtocol(Protocol):
"""
Handles SASL authentication status reports.
"""
log.info('(%s) %s', self.irc.name, args[-1])
logfunc = log.info if command == '903' else log.warning
logfunc('(%s) %s', self.irc.name, args[-1])
self.irc.send('CAP END')
handle_903 = handle_902 = handle_905 = handle_906 = handle_907 = handle_904