mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added log lines for all project flushing
This commit is contained in:
parent
0ae838dd2d
commit
aa15a76059
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ ProjectFlusher =
|
|||
return ids
|
||||
|
||||
flushAllProjects: (options, callback)->
|
||||
logger.log options:options, "flushing all projects"
|
||||
ProjectFlusher._getKeys docUpdaterKeys.docsInProject({project_id:"*"}), options.limit, (error, project_keys) ->
|
||||
if error?
|
||||
logger.err err:error, "error getting keys for flushing"
|
||||
|
@ -65,6 +66,7 @@ ProjectFlusher =
|
|||
failure.push(project_ids[i])
|
||||
else
|
||||
success.push(project_ids[i])
|
||||
logger.log success:success, failure:failure, "finished flushing all projects"
|
||||
return callback(error, {success:success, failure:failure})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue