@@ -632,9 +632,10 @@ async def get_msg(self, *args: Any, **kwargs: Any) -> dict[str, Any]:
632
632
timeout = kwargs .get ("timeout" , 1 )
633
633
msg = await self ._async_get (timeout = timeout )
634
634
self .log .debug (
635
- "Received message on channel: {}, msg_id: {}, msg_type: {}" .format (
636
- self .channel_name , msg ["msg_id" ], msg ["msg_type" ] if msg else "null"
637
- )
635
+ "Received message on channel: %s, msg_id: %s, msg_type: %s" ,
636
+ self .channel_name ,
637
+ msg ["msg_id" ],
638
+ msg ["msg_type" ] if msg else "null" ,
638
639
)
639
640
self .task_done ()
640
641
return cast ("dict[str, Any]" , msg )
@@ -643,9 +644,10 @@ def send(self, msg: dict[str, Any]) -> None:
643
644
"""Send a message to the queue."""
644
645
message = json .dumps (msg , default = ChannelQueue .serialize_datetime ).replace ("</" , "<\\ /" )
645
646
self .log .debug (
646
- "Sending message on channel: {}, msg_id: {}, msg_type: {}" .format (
647
- self .channel_name , msg ["msg_id" ], msg ["msg_type" ] if msg else "null"
648
- )
647
+ "Sending message on channel: %s, msg_id: %s, msg_type: %s" ,
648
+ self .channel_name ,
649
+ msg ["msg_id" ],
650
+ msg ["msg_type" ] if msg else "null" ,
649
651
)
650
652
self .channel_socket .send (message )
651
653
0 commit comments