Skip to content

Commit

Permalink
handled other SASL mechanism in logging (#861)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Mangin <aleksandr.mangin@klarna.com>
  • Loading branch information
mangin and Aleksandr Mangin committed Oct 14, 2022
1 parent 6360747 commit 7544add
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/852.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Handled other SASL mechanism in logging (issue #852, pr #861 by @mangin)
7 changes: 5 additions & 2 deletions aiokafka/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,11 @@ async def _do_sasl_handshake(self):
'Authenticated via OAUTHBEARER'
)
else:
self.log.info('Authenticated as %s via PLAIN',
self._sasl_plain_username)
self.log.info(
'Authenticated as %s via %s',
self._sasl_plain_username,
self._sasl_mechanism
)

def authenticator_plain(self):
return SaslPlainAuthenticator(
Expand Down

0 comments on commit 7544add

Please sign in to comment.