From 9ce01dcf5f9d5c05b25791ffbdbfaa3338f0f534 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sat, 5 Aug 2017 21:39:19 +0100 Subject: [PATCH] Re work --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index c949f76..a8c9f29 100644 --- a/app.js +++ b/app.js @@ -79,7 +79,7 @@ app.get('/:encoded_id', function(req, res){ // check if url already exists in database Url.findOneAndUpdate({_id: id}, {$inc:{visits:1}}, function (err, doc){ if (doc) { - logger.debug('doc', doc); + logger.debug(`Redirect: ${doc.long_url}`); res.redirect(307, doc.long_url); } else { res.redirect(config.webhost);