From d616f686e307312c84557111119d0fa033c9e45e Mon Sep 17 00:00:00 2001 From: chenxudong Date: Wed, 30 Jul 2025 16:46:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/install/InstallMariaDB.py | 2 +- src/install/InstallOrUpgradeComacDB.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install/InstallMariaDB.py b/src/install/InstallMariaDB.py index c36b8c7..5fe4fd9 100644 --- a/src/install/InstallMariaDB.py +++ b/src/install/InstallMariaDB.py @@ -65,7 +65,7 @@ if __name__ == '__main__': logger.add( sink=os.path.join(log_dir, "InstallMariaDB_{time}.log"), # 文件路径模板 rotation="10 MB", # 文件大小达到10MB时轮转 - retention="1 days", # 保留最近30天的日志 + retention="1 days", # 保留最近1天的日志 compression="zip", # 压缩旧日志节省空间 enqueue=True, # 线程安全写入 format="{time:YYYY-MM-DD HH:mm:ss} | {level} | {message}" # 自定义格式 diff --git a/src/install/InstallOrUpgradeComacDB.py b/src/install/InstallOrUpgradeComacDB.py index f48f1bd..415662a 100644 --- a/src/install/InstallOrUpgradeComacDB.py +++ b/src/install/InstallOrUpgradeComacDB.py @@ -126,7 +126,7 @@ if __name__ == '__main__': logger.add( sink=os.path.join(log_dir, "InstallComacDB_{time}.log"), # 文件路径模板 rotation="10 MB", # 文件大小达到10MB时轮转 - retention="1 days", # 保留最近30天的日志 + retention="1 days", # 保留最近1天的日志 compression="zip", # 压缩旧日志节省空间 enqueue=True, # 线程安全写入 format="{time:YYYY-MM-DD HH:mm:ss} | {level} | {message}" # 自定义格式