From 9c9ab2dd7de8f474318a1665ef1fb603652fef4f Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 17 May 2020 03:26:23 +0100 Subject: [PATCH] Log player messages to console --- houdini/handlers/play/message.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/houdini/handlers/play/message.py b/houdini/handlers/play/message.py index 8afa147..7c5601e 100644 --- a/houdini/handlers/play/message.py +++ b/houdini/handlers/play/message.py @@ -40,3 +40,5 @@ async def handle_send_message(p, penguin_id: int, message: str): await invoke_command_string(p.server.commands, p, message) else: await p.room.send_xt('sm', p.id, message) + + p.logger.info(f'{p.username} said \'{message}\' in room \'{p.room.name}\'')