summaryrefslogtreecommitdiff
path: root/swiftstory/SwiftStory.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/SwiftStory.py
parentfc2c01888755d398f1bce1d0fbfa1ee822acfef1 (diff)
replace calls to print by calls to logging
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/SwiftStory.py')
-rw-r--r--swiftstory/SwiftStory.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/swiftstory/SwiftStory.py b/swiftstory/SwiftStory.py
index 0451062..f9799ef 100644
--- a/swiftstory/SwiftStory.py
+++ b/swiftstory/SwiftStory.py
@@ -4,6 +4,7 @@ import argparse
import asyncio
import contextlib
import json
+import logging
import websockets
import swiftstory.GameManager
@@ -79,6 +80,8 @@ def main():
parser.add_argument('--port', type=int, default=1236)
args = vars(parser.parse_args())
+ logging.basicConfig(level=logging.INFO)
+
start_server = websockets.serve(connection_handler, args['listen'], args['port'])
asyncio.get_event_loop().run_until_complete(start_server)