From 9c709584c2ac8d80f75dc298df558e846cba78e9 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Fri, 6 Dec 2019 17:30:07 +0700 Subject: [PATCH] Disable morgan --- lib/apiserver/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/apiserver/index.js b/lib/apiserver/index.js index 71c194f..5737630 100644 --- a/lib/apiserver/index.js +++ b/lib/apiserver/index.js @@ -9,12 +9,12 @@ const handlerOnReceived = require('./handler/on-received'); const app = express(); -const accessLogStream = rfs('access_log', { - interval: '1d', - path: './logs', -}); +// const accessLogStream = rfs('access_log', { +// interval: '1d', +// path: './logs', +// }); -app.use(morgan, 'combined', { stream: accessLogStream }); +// app.use(morgan, 'combined', { stream: accessLogStream }); app.get('/ping', (req, res) => { res.end('PONG'); }); app.get('/service', handlerOnReceived); -- 1.9.0