mirror of https://github.com/Mikaela/Limnoria.git
irclib: Make SASL messages easier to understand
The logs are meant to be understandable by humans, and not everyone might know AUTHENTICATE is a SASL command. [ci skip]
This commit is contained in:
parent
4664d5c293
commit
14e51f6193
|
@ -939,9 +939,9 @@ class Irc(IrcCommandDispatcher):
|
||||||
]).encode('utf-8')).decode('utf-8')
|
]).encode('utf-8')).decode('utf-8')
|
||||||
log.debug('Sending CAP REQ command, requesting capability \'sasl\'.')
|
log.debug('Sending CAP REQ command, requesting capability \'sasl\'.')
|
||||||
self.queueMsg(ircmsgs.IrcMsg(command="CAP", args=('REQ', 'sasl')))
|
self.queueMsg(ircmsgs.IrcMsg(command="CAP", args=('REQ', 'sasl')))
|
||||||
log.debug('Sending AUTHENTICATE command, using mechanism PLAIN.')
|
log.debug('Using SASL mechanism PLAIN.')
|
||||||
self.queueMsg(ircmsgs.IrcMsg(command="AUTHENTICATE", args=('PLAIN',)))
|
self.queueMsg(ircmsgs.IrcMsg(command="AUTHENTICATE", args=('PLAIN',)))
|
||||||
log.info('Sending AUTHENTICATE command, not logging the password.')
|
log.info('Authenticating using SASL.')
|
||||||
self.queueMsg(ircmsgs.IrcMsg(command="AUTHENTICATE", args=(auth_string,)))
|
self.queueMsg(ircmsgs.IrcMsg(command="AUTHENTICATE", args=(auth_string,)))
|
||||||
if self.password:
|
if self.password:
|
||||||
log.info('Sending PASS command, not logging the password.')
|
log.info('Sending PASS command, not logging the password.')
|
||||||
|
|
Loading…
Reference in New Issue