From b679fc9739685d502a271a8ef05a023ec76fcec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0koda?= Date: Thu, 14 Nov 2024 14:48:09 +0100 Subject: [PATCH] fix logging --- cryptofeed/connection_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptofeed/connection_handler.py b/cryptofeed/connection_handler.py index 302c29ca7..c9ec66a32 100644 --- a/cryptofeed/connection_handler.py +++ b/cryptofeed/connection_handler.py @@ -45,7 +45,7 @@ async def _watcher(self): while self.conn.is_open and self.running: if self.conn.last_message: if time.time() - self.conn.last_message > self.timeout: - LOG.warning("%s: received no messages within timeout %.0f, restarting connection", self.timeout, self.conn.uuid) + LOG.warning("%s: received no messages within timeout %.0f, restarting connection", self.conn.uuid, self.timeout) await self.conn.close() break await asyncio.sleep(self.timeout_interval)