Skip to content

Commit 035af5b

Browse files
authored
Merge branch 'master' into feature/SASL-Extensions
2 parents 82fae7a + eb6fd9b commit 035af5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def close(self, error=None):
680680
with self._lock:
681681
if self.state is ConnectionStates.DISCONNECTED:
682682
return
683-
log.info('%s: Closing connection. %s', self, error or '')
683+
log.log(logging.ERROR if error else logging.INFO, '%s: Closing connection. %s', self, error or '')
684684
self._update_reconnect_backoff()
685685
self._sasl_auth_future = None
686686
self._protocol = KafkaProtocol(

0 commit comments

Comments
 (0)