Skip to content

Commit b41b054

Browse files
committed
fix: update LOG_KEEP_DAYS to use CONFIG for configurable log retention
1 parent 47dd177 commit b41b054

File tree

1 file changed

+1
-1
lines changed
  • apps/common/management/commands/services/services

1 file changed

+1
-1
lines changed

apps/common/management/commands/services/services/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, **kwargs):
1616
self.STOP_TIMEOUT = 10
1717
self.max_retry = 0
1818
self.retry = 3
19-
self.LOG_KEEP_DAYS = 7
19+
self.LOG_KEEP_DAYS = int(CONFIG.get('LOG_RETENTION_DAYS', 7))
2020
self.EXIT_EVENT = threading.Event()
2121

2222
@property

0 commit comments

Comments
 (0)