Skip to content

Commit 3063349

Browse files
committed
game_process: add some logs
1 parent 22e9119 commit 3063349

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dweam/game_process.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ async def main():
160160

161161
log.info("Parsed args", game_type=game_type, game_id=game_id, port=port)
162162

163+
log.info("Attempting to connect to parent", host='127.0.0.1', port=port)
164+
163165
try:
164166
# Connect to parent process
165167
reader, writer = await asyncio.open_connection(
@@ -168,7 +170,7 @@ async def main():
168170
)
169171
log.info("Connected to parent")
170172
except Exception as e:
171-
log.error("Failed to connect to parent", error=str(e))
173+
log.exception("Failed to connect to parent")
172174
raise
173175

174176
# Load the game implementation

0 commit comments

Comments
 (0)