Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Log urls of cache misses
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Aug 5, 2014
1 parent fe90dd7 commit 25f9cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/read-pipermail.js
Expand Up @@ -19,11 +19,13 @@ function messages(options) {
db.headers.findOne({url: url}, function (err, res) {
if (err || res === null) {
if (err) options.onError(err)
console.log(url)
return resolve(true)
}
db.contents.find({_id: res._id}).count(function (err, res) {
if (err || res !== 1) {
if (err) options.onError(err)
console.log(url)
return resolve(true)
}
cache.push(url)
Expand Down Expand Up @@ -53,4 +55,4 @@ function tag(subject) {
.replace(/fwd?/gi, '')
.replace(/re/gi, '')
.toLowerCase()
}
}
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "pipermail-bot",
"version": "3.1.1",
"version": "3.2.0",
"description": "The esdiscuss bot",
"main": "index.js",
"bin": "bin/cmd.js",
Expand Down

0 comments on commit 25f9cc7

Please sign in to comment.