File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,7 @@ async def on_message_for_websocket(
421421 # Update message received count
422422 num_messages_received : int = message_stats [_MESSAGE_STATS_KEY_RECEIVED ] + 1
423423 message_stats [_MESSAGE_STATS_KEY_RECEIVED ] = num_messages_received
424+ _LOGGER .info ("COUNTED %s" , message_context .offset )
424425
425426 shutdown : bool = False
426427 # We shutdown if...
@@ -446,14 +447,18 @@ async def on_message_for_websocket(
446447 )
447448 shutdown = True
448449 elif msg :
450+ _LOGGER .info ("PREPARING %s" , message_context .offset )
449451 # We know the AMQPMessage (as a string will start "b'" and end "'"
450452 message_string = str (msg )[2 :- 1 ]
453+ _LOGGER .info ("TRIMMED %s" , message_context .offset )
451454 if message_string [0 ] != "{" :
455+ _LOGGER .info ("IS JSON %s" , message_context .offset )
452456 # The EventStream Service is permitted to append to the protobuf string
453457 # as long as it uses the '|' delimiter. Here qwe add offset and timestamp.
454458 message_string += f"|ordinal: { message_context .offset } "
455459 message_string += f"|timestamp: { message_context .timestamp } "
456460 else :
461+ _LOGGER .info ("IS PROTOBUF %s" , message_context .offset )
457462 # The EventStream Service is permitted to append to the JSON string
458463 # as long as it uses keys with the prefix "ess_"
459464 msg_dict : dict [str , Any ] = json .loads (message_string )
You can’t perform that action at this time.
0 commit comments