Use logger instead of print

This commit is contained in:
litagin02
2024-01-06 13:59:10 +09:00
parent 432689e29f
commit 100949d970
6 changed files with 24 additions and 19 deletions

View File

@@ -208,10 +208,10 @@ class Config:
def __init__(self, config_path: str, path_config: dict[str, str]):
if not os.path.isfile(config_path) and os.path.isfile("default_config.yml"):
shutil.copy(src="default_config.yml", dst=config_path)
print(
logger.info(
f"A configuration file {config_path} has been generated based on the default configuration file default_config.yml."
)
print(
logger.info(
"If you have no special needs, please do not modify default_config.yml."
)
# sys.exit(0)