Skip to content

Commit

Permalink
Log connection errors at ERROR level (#139)
Browse files Browse the repository at this point in the history
Co-authored-by: drewdogg <[email protected]>
  • Loading branch information
wbarnha and drewdogg authored Mar 12, 2024
1 parent 54cbd63 commit eb6fd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def close(self, error=None):
with self._lock:
if self.state is ConnectionStates.DISCONNECTED:
return
log.info('%s: Closing connection. %s', self, error or '')
log.log(logging.ERROR if error else logging.INFO, '%s: Closing connection. %s', self, error or '')
self._update_reconnect_backoff()
self._sasl_auth_future = None
self._protocol = KafkaProtocol(
Expand Down

0 comments on commit eb6fd9b

Please sign in to comment.