Skip to content

Commit

Permalink
test: log
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli authored and psychobunny committed Apr 19, 2021
1 parent 354e0a8 commit d15e271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function (middleware) {
}

const count = (cache.peek(`${req.ip}:uploaded_file_count`) || 0) + req.files.files.length;

console.log('req.ip', req.ip, count, req.files.files.length, meta.config.uploadRateLimitThreshold);
if (count > meta.config.uploadRateLimitThreshold) {
return next(new Error(['[[error:upload-ratelimit-reached]]']));
}
Expand Down

0 comments on commit d15e271

Please sign in to comment.