mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 12:13:43 -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
|
return ids
|
||||||
|
|
||||||
flushAllProjects: (options, callback)->
|
flushAllProjects: (options, callback)->
|
||||||
|
logger.log options:options, "flushing all projects"
|
||||||
ProjectFlusher._getKeys docUpdaterKeys.docsInProject({project_id:"*"}), options.limit, (error, project_keys) ->
|
ProjectFlusher._getKeys docUpdaterKeys.docsInProject({project_id:"*"}), options.limit, (error, project_keys) ->
|
||||||
if error?
|
if error?
|
||||||
logger.err err:error, "error getting keys for flushing"
|
logger.err err:error, "error getting keys for flushing"
|
||||||
|
@ -65,6 +66,7 @@ ProjectFlusher =
|
||||||
failure.push(project_ids[i])
|
failure.push(project_ids[i])
|
||||||
else
|
else
|
||||||
success.push(project_ids[i])
|
success.push(project_ids[i])
|
||||||
|
logger.log success:success, failure:failure, "finished flushing all projects"
|
||||||
return callback(error, {success:success, failure:failure})
|
return callback(error, {success:success, failure:failure})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue