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)