Skip to content

Commit

Permalink
Add a log when we reprovide a doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin01 committed Sep 5, 2014
1 parent 81ae8b7 commit 96a2400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/handlers/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ module.exports = function(updateAccount, queue, workers) {
console.log("User `" + token.accountName + "` pushed " + queues[name].length + " tasks onto queue `" + name + "`");
queues[name].every(function(task) {
if(documentsCount < req.params.documents_per_update && (!req.params.identifier || task.identifier === req.params.identifier)) {
if (req.params.identifier) {
console.log("REPROVIDE", task.title, "(", task.identifier, ")");
}

task._anyfetchToken = token.anyfetchToken;
task._anyfetchApiUrl = req.params.api_url;
queue.create(name, task).save();
Expand Down

0 comments on commit 96a2400

Please sign in to comment.