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'))