Remove logging

This commit is contained in:
shenjack 2023-12-24 16:09:54 +08:00
parent e0017675fa
commit 57472028b7
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 3 additions and 5 deletions

View File

@ -83,7 +83,7 @@ class Client:
def __init__(self, game: "Game", net_mode="local"): def __init__(self, game: "Game", net_mode="local"):
start_time = time.time_ns() start_time = time.time_ns()
# logging # log
self.logger = loggers.get_logger("client").set_tag("client") self.logger = loggers.get_logger("client").set_tag("client")
self.logger.info(tr().client.setup.start()) self.logger.info(tr().client.setup.start())
# config # config
@ -250,7 +250,7 @@ class ClientWindow(Window):
""" """
start_time = time.time_ns() start_time = time.time_ns()
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
# logging # log
self.logger = loggers.get_logger("client").set_tag("window") self.logger = loggers.get_logger("client").set_tag("window")
self.logger.info(tr().window.setup.start()) self.logger.info(tr().window.setup.start())
# value # value

View File

@ -27,7 +27,7 @@ from lib_not_dr import loggers
class Server: class Server:
def __init__(self, net_mode="local"): def __init__(self, net_mode="local"):
start_time = time.time() start_time = time.time()
# logging # log
self.logger = loggers.config.get_logger("server").set_tag("server") self.logger = loggers.config.get_logger("server").set_tag("server")
self.logger.info(tr().server.setup.start()) self.logger.info(tr().server.setup.start())
# value # value

View File

@ -43,8 +43,6 @@ if DR_mod_runtime.use_DR_rust:
logger = loggers.get_logger("client.dr_game_sr1_ship") logger = loggers.get_logger("client.dr_game_sr1_ship")
# logger = logging.getLogger("client.dr_game_sr1_ship")
# logger.level = logging.DEBUG
sr_tr = Tr(lang_path=Path(__file__).parent / "lang") sr_tr = Tr(lang_path=Path(__file__).parent / "lang")