irclib: Log the server's error message on SASL failure.

This commit is contained in:
Valentin Lorentz 2021-09-01 18:25:54 +02:00
parent e63858659a
commit 74073b2736

View File

@ -1992,8 +1992,8 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
self.endCapabilityNegociation(msg)
def do904(self, msg):
log.warning('%s: SASL authentication failed (mechanism: %s)',
self.network, self.sasl_current_mechanism)
log.warning('%s: SASL authentication failed (mechanism: %s): %s',
self.network, self.sasl_current_mechanism, msg.args[-1])
self.tryNextSaslMechanism(msg)
def do905(self, msg):