summaryrefslogtreecommitdiff
path: root/swiftstory/Client.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-11-01 22:38:35 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-11-01 22:38:41 +0100
commita1a5bfa76eea4b2e5f086ae8a9a723a68b0d6fe5 (patch)
tree3882ada34147e2fdcd2bda1009edc237f9d2a3b4 /swiftstory/Client.py
parentfc2c01888755d398f1bce1d0fbfa1ee822acfef1 (diff)
replace calls to print by calls to logging
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/Client.py')
-rw-r--r--swiftstory/Client.py3
1 files changed, 2 insertions, 1 deletions
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())