From 009aafbe32459dbc57f4de4642c328a96891be4c Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Tue, 10 Apr 2018 17:22:06 -0700 Subject: [PATCH] Only log in preprod --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index f913171..d126bcd 100644 --- a/server.js +++ b/server.js @@ -38,7 +38,9 @@ app const imageHandler = require('./handlers/image')(browser) const unsplashHandler = require('./handlers/unsplash') - server.use(morgan('tiny')) + if (dev) { + server.use(morgan('tiny')) + } // api endpoints server.post('/twitter', bodyParser.json({ limit: '5mb' }), require('./handlers/twitter'))