File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -474,12 +474,19 @@ async def on_message_for_websocket(
474474
475475 _LOGGER .debug ("Handled msg for %s /%s/..." , es_id , es_websocket_uuid )
476476
477+ if (
478+ message_stats [_MESSAGE_STATS_KEY_RECEIVED ]
479+ != message_stats [_MESSAGE_STATS_KEY_SENT ]
480+ ):
481+ _LOGGER .info ("COUNT MISMATCH %s" , message_stats )
482+ _LOGGER .info ("Last message: %s" , message_string )
483+
477484 # Consider regular INFO summary.
478485 # Stats will ultimately be produced if the socket closes,
479486 # so we just have to consider regular updates here.
480487 if num_messages_received % _MESSAGE_STATS_INTERVAL == 0 :
481488 _LOGGER .info (
482- "Message stats for %s /%s/: %s" , es_id , es_websocket_uuid , message_stats
489+ "Message stats for %s /%s/ %s" , es_id , es_websocket_uuid , message_stats
483490 )
484491
485492 if shutdown :
@@ -548,7 +555,7 @@ async def _consume(
548555 _LOGGER .info ("Closed %s /%s/" , es_id , es_websocket_uuid )
549556
550557 _LOGGER .info (
551- "Stopped consuming %s /%s/ (message_stats=%s) " ,
558+ "Stopped consuming %s /%s/ %s " ,
552559 es_id ,
553560 es_websocket_uuid ,
554561 message_stats ,
You can’t perform that action at this time.
0 commit comments