From 452bb14605cb363b497e8054ed79904340a4b699 Mon Sep 17 00:00:00 2001 From: jomo Date: Thu, 27 Nov 2014 13:37:14 +0100 Subject: [PATCH] debug log for cloudflare/etag --- routes/avatars.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/avatars.js b/routes/avatars.js index f546466..24ae9bf 100644 --- a/routes/avatars.js +++ b/routes/avatars.js @@ -91,8 +91,9 @@ router.get('/avatars/:uuid.:ext?', function(req, res) { } else if (err) { http_status = 503; } - console.log("matches: " + matches); - console.log("status: " + http_status); + logging.log("matches: " + matches); + logging.log("Etag: " + req.get("If-None-Match")); + logging.log("status: " + http_status); sendimage(http_status, status, image); } else { handle_default(404, status);