disabled morgan
This commit is contained in:
1 parent
a951e6321d
commit
0b9be294c2
1 file changed
+3
-3
@@ -20,9 +20,9 @@ app.use(bodyParser.urlencoded({ extended: true }));
|
|||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
|
|
||||||
// Morgan: log only non-static requests
|
// Morgan: log only non-static requests
|
||||||
app.use(morgan(':method :url :status :res[content-length] - :response-time ms', {
|
// app.use(morgan(':method :url :status :res[content-length] - :response-time ms', {
|
||||||
skip: (req) => req.url.startsWith('/assets') || req.url.startsWith('/favicon.ico')
|
// skip: (req) => req.url.startsWith('/assets') || req.url.startsWith('/favicon.ico')
|
||||||
}));
|
// }));
|
||||||
|
|
||||||
|
|
||||||
// Routes
|
// Routes
|
||||||
|
|||||||
Reference in new issue
Block a user