From 1b1df35a144b07ed6bce2ea25a265d45c30b3af5 Mon Sep 17 00:00:00 2001 From: Charles Le Maux Date: Tue, 10 Sep 2024 13:16:16 +0200 Subject: [PATCH] [+] Added server closing log --- generic_executor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/generic_executor.py b/generic_executor.py index 1e309d2..8d5ce04 100644 --- a/generic_executor.py +++ b/generic_executor.py @@ -246,6 +246,7 @@ def server_stop(user: UserRecord, name: str) -> tuple[HTTPStatus, Union[str, Non exists: bool = mc_manager.stop_server(port) if exists: firebase_manager.update_server_running_state(user_id, name, False) + file_manager.log_action(user_id, name, "ServerStop") return HTTPStatus.OK, f"Successfully stopped server '{name}'." return HTTPStatus.OK, f"Server '{name}' already stopped." except Exception as e: