chore: 移除过时的兼容性处理代码

This commit is contained in:
RockChinQ
2024-01-18 00:52:29 +08:00
parent aa433bd5ab
commit 5bbc38a7a3
8 changed files with 22 additions and 85 deletions

View File

@@ -28,10 +28,6 @@ def init_runtime_log_file():
if not os.path.exists("logs"):
os.mkdir("logs")
# 检查本目录是否有qchatgpt.log若有移动到logs目录
if os.path.exists("qchatgpt.log"):
shutil.move("qchatgpt.log", "logs/qchatgpt.legacy.log")
log_file_name = "logs/qchatgpt-%s.log" % time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime())