mirror of https://github.com/xwiki-labs/cryptpad
avoid logging for common 404s
This commit is contained in:
parent
e895990426
commit
b753a067ac
|
@ -424,7 +424,12 @@ app.get('/api/profiling', function (req, res) {
|
|||
});
|
||||
|
||||
app.use(function (req, res /*, next */) {
|
||||
Log.info('HTTP_404', req.url);
|
||||
if (/^(\/favicon\.ico\/|.*\.js\.map)$/.test(req.url)) {
|
||||
// ignore common 404s
|
||||
} else {
|
||||
Log.info('HTTP_404', req.url);
|
||||
}
|
||||
|
||||
res.status(404);
|
||||
send404(res, custom_four04_path);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue