userfiles: make handler optional
This commit is contained in:
parent
c7c52e6c74
commit
3d190b786f
3 changed files with 22 additions and 7 deletions
|
@ -36,8 +36,9 @@ class LogRotateWorker(Worker):
|
|||
|
||||
def _archive_logs(self):
|
||||
logger.debug('Attempting to rotate log entries')
|
||||
log_archive = DelegateUserfiles(app, storage, SAVE_LOCATION, SAVE_PATH,
|
||||
'action_log_archive_handlers')
|
||||
|
||||
log_archive = DelegateUserfiles(app, storage, SAVE_LOCATION, SAVE_PATH)
|
||||
|
||||
while True:
|
||||
with GlobalLock('ACTION_LOG_ROTATION') as gl:
|
||||
if not gl:
|
||||
|
|
Reference in a new issue