From a1a5bfa76eea4b2e5f086ae8a9a723a68b0d6fe5 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 1 Nov 2020 22:38:35 +0100 Subject: replace calls to print by calls to logging Signed-off-by: Olivier Gayot --- swiftstory/Client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'swiftstory/Client.py') diff --git a/swiftstory/Client.py b/swiftstory/Client.py index 6f98301..45e2f96 100644 --- a/swiftstory/Client.py +++ b/swiftstory/Client.py @@ -1,4 +1,5 @@ import asyncio +import logging from swiftstory.Status import error @@ -66,7 +67,7 @@ class Client: try: await self.socket.send(message) except websockets.exceptions.ConnectionClosed: - print("Recipient has disconnected.") + logging.warning("Recipient has disconnected.") asyncio.create_task(f()) -- cgit v1.2.3