fix: update LOG_KEEP_DAYS to use CONFIG for configurable log retention

This commit is contained in:
CaptainB 2025-07-22 10:16:06 +08:00
parent 47dd177b7e
commit b41b054c49

View File

@ -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