From b41b054c49d4227804bdc402ee173be778f0bfb9 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 22 Jul 2025 10:16:06 +0800 Subject: [PATCH] fix: update LOG_KEEP_DAYS to use CONFIG for configurable log retention --- apps/common/management/commands/services/services/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/management/commands/services/services/base.py b/apps/common/management/commands/services/services/base.py index 2d8c47c10..ed01e7fac 100644 --- a/apps/common/management/commands/services/services/base.py +++ b/apps/common/management/commands/services/services/base.py @@ -16,7 +16,7 @@ class BaseService(object): self.STOP_TIMEOUT = 10 self.max_retry = 0 self.retry = 3 - self.LOG_KEEP_DAYS = 7 + self.LOG_KEEP_DAYS = int(CONFIG.get('LOG_RETENTION_DAYS', 7)) self.EXIT_EVENT = threading.Event() @property