@@ -956,20 +956,20 @@ def _run_once(self):
956
956
# the session timeout has expired without seeing a
957
957
# successful heartbeat, so we should probably make sure
958
958
# the coordinator is still healthy.
959
- log .debug ('Heartbeat session expired, marking coordinator dead' )
959
+ log .warning ('Heartbeat session expired, marking coordinator dead' )
960
960
self .coordinator .coordinator_dead ('Heartbeat session expired' )
961
961
962
962
elif self .coordinator .heartbeat .poll_timeout_expired ():
963
963
# the poll timeout has expired, which means that the
964
964
# foreground thread has stalled in between calls to
965
965
# poll(), so we explicitly leave the group.
966
- log .debug ('Heartbeat poll expired, leaving group' )
966
+ log .warning ('Heartbeat poll expired, leaving group' )
967
967
self .coordinator .maybe_leave_group ()
968
968
969
969
elif not self .coordinator .heartbeat .should_heartbeat ():
970
970
# poll again after waiting for the retry backoff in case
971
971
# the heartbeat failed or the coordinator disconnected
972
- log .debug ( 'Not ready to heartbeat, waiting' )
972
+ log .log ( 0 , 'Not ready to heartbeat, waiting' )
973
973
self .coordinator ._lock .wait (self .coordinator .config ['retry_backoff_ms' ] / 1000 )
974
974
975
975
else :
0 commit comments