Skip to content

Commit 7544add

Browse files
manginAleksandr Mangin
andauthored
handled other SASL mechanism in logging (#861)
Co-authored-by: Aleksandr Mangin <[email protected]>
1 parent 6360747 commit 7544add

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES/852.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Handled other SASL mechanism in logging (issue #852, pr #861 by @mangin)

aiokafka/conn.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,11 @@ async def _do_sasl_handshake(self):
337337
'Authenticated via OAUTHBEARER'
338338
)
339339
else:
340-
self.log.info('Authenticated as %s via PLAIN',
341-
self._sasl_plain_username)
340+
self.log.info(
341+
'Authenticated as %s via %s',
342+
self._sasl_plain_username,
343+
self._sasl_mechanism
344+
)
342345

343346
def authenticator_plain(self):
344347
return SaslPlainAuthenticator(

0 commit comments

Comments
 (0)