@@ -632,9 +632,10 @@ async def get_msg(self, *args: Any, **kwargs: Any) -> dict[str, Any]:
632632 timeout = kwargs .get ("timeout" , 1 )
633633 msg = await self ._async_get (timeout = timeout )
634634 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" ,
638639 )
639640 self .task_done ()
640641 return cast ("dict[str, Any]" , msg )
@@ -643,9 +644,10 @@ def send(self, msg: dict[str, Any]) -> None:
643644 """Send a message to the queue."""
644645 message = json .dumps (msg , default = ChannelQueue .serialize_datetime ).replace ("</" , "<\\ /" )
645646 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" ,
649651 )
650652 self .channel_socket .send (message )
651653
0 commit comments