remove unnecessassary logging dup check

This commit is contained in:
Hay1tsme 2023-02-24 14:14:18 -05:00
parent cb227f9cf4
commit b31e739ecd

View File

@ -92,7 +92,6 @@ if __name__ == "__main__":
cfg.update(yaml.safe_load(open(f"{args.config}/core.yaml")))
logger = logging.getLogger("core")
if not hasattr(logger, "initialized"):
log_fmt_str = "[%(asctime)s] Core | %(levelname)s | %(message)s"
log_fmt = logging.Formatter(log_fmt_str)
@ -108,7 +107,6 @@ if __name__ == "__main__":
log_lv = logging.DEBUG if cfg.server.is_develop else logging.INFO
logger.setLevel(log_lv)
coloredlogs.install(level=log_lv, logger=logger, fmt=log_fmt_str)
logger.initialized = True
if not path.exists(cfg.server.log_dir):
mkdir(cfg.server.log_dir)