[~] No production printing.

This commit is contained in:
Charles Le Maux 2024-09-06 12:55:09 +02:00
parent f52696d38a
commit bcf096cda2

View File

@ -117,11 +117,9 @@ class MinecraftServerManager:
if port not in self.offline_ports:
self.offline_ports.append(port)
else:
print(f"Closing {port} server.")
user_id = server_info.get("user_id", None)
name = server_info.get("name", None)
server_stamp = server_info.get("time", None)
print(f"{user_id}, {name}, {server_stamp}")
firebase_manager.close_idle_server(
user_id=user_id,
name=name,
@ -131,8 +129,6 @@ class MinecraftServerManager:
else:
if port in self.offline_ports:
self.offline_ports.remove(port)
print(f"Offline_servers : {self.offline_ports}")
return