aiokafka
aiokafka copied to clipboard
SCRAM SASL mechanism wrongly logged as PLAIN
Hi,
I found out that the SCRAM SASL mechanism is likely forgotten in the logging logic at conn.py. I am using a SCARAM-SHA-256 SASL mechanism and after a client successfully connects to Kafka the log shows Authenticated as xxx via PLAIN
.
I believe there is a missing condition elif self._sasl_mechanism.startswith('SCRAM-SHA-'):
before the following line. https://github.com/aio-libs/aiokafka/blob/6360747c4305d1d096d5e55037d60a12c4c9ab15/aiokafka/conn.py#L340