From 7596cba26ba7252bf18c355d3daad65df1d0e249 Mon Sep 17 00:00:00 2001 From: Kevin Whitley Date: Fri, 18 Nov 2016 12:18:49 -0600 Subject: [PATCH] fixed typo in console log output --- src/apicache.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/apicache.js b/src/apicache.js index 4e2813a..5b8b3aa 100644 --- a/src/apicache.js +++ b/src/apicache.js @@ -267,7 +267,7 @@ function ApiCache() { if (cached) { // console log var elapsed = new Date() - req.apicacheTimer - debug('sending cached (redis) version of', key, logDuration(elapsed)) + debug('sending cached (memory-cache) version of', key, logDuration(elapsed)) return sendCachedResponse(res, cached) } @@ -276,8 +276,6 @@ function ApiCache() { if (redis) { redis.hgetall(key, function (err, obj) { if (!err && obj) { - debug('sending cached (redis) version of', key) - // console log var elapsed = new Date() - req.apicacheTimer debug('sending cached (redis) version of', key, logDuration(elapsed))