added log lines for all project flushing

This commit is contained in:
Henry Oswald 2019-08-30 07:38:53 +01:00
parent 0ae838dd2d
commit aa15a76059

View file

@ -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})