From 6d938cabc8794918aa12ad3bd8e4757cc40e60b1 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Wed, 4 Oct 2023 12:45:23 -0400 Subject: [PATCH] Set some stats logging to debug Add stop server logging --- app/classes/minecraft/stats.py | 2 +- app/classes/shared/server.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/classes/minecraft/stats.py b/app/classes/minecraft/stats.py index c336612a..a3f85c05 100644 --- a/app/classes/minecraft/stats.py +++ b/app/classes/minecraft/stats.py @@ -226,7 +226,7 @@ class Stats: def get_server_players(self, server_id): server = HelperServers.get_server_data_by_id(server_id) - logger.info(f"Getting players for server {server}") + logger.debug(f"Getting players for server {server['server_name']}") internal_ip = server["server_ip"] server_port = server["server_port"] diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index 2f62dc68..8bc31a52 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -792,6 +792,7 @@ class ServerInstance: f"Assuming it was never started." ) if self.settings["stop_command"]: + logger.info(f"Stop command requested for {self.settings['server_name']}.") self.send_command(self.settings["stop_command"]) self.write_player_cache() else: @@ -1631,7 +1632,7 @@ class ServerInstance: def get_server_players(self): server = HelperServers.get_server_data_by_id(self.server_id) - logger.info(f"Getting players for server {server}") + logger.debug(f"Getting players for server {server['server_name']}") internal_ip = server["server_ip"] server_port = server["server_port"]