userfiles: make handler optional

This commit is contained in:
Jimmy Zelinskie 2016-04-15 13:51:54 -04:00
parent c7c52e6c74
commit 3d190b786f
3 changed files with 22 additions and 7 deletions

View file

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