change check target from req.url to req.originalUrl
This commit is contained in:
@@ -46,7 +46,7 @@ function getLogger(logger4js, options) {
|
|||||||
if (req._logging) return next();
|
if (req._logging) return next();
|
||||||
|
|
||||||
// nologs
|
// nologs
|
||||||
if(nolog && nolog.test(req.url)) return next();
|
if(nolog && nolog.test(req.originalUrl)) return next();
|
||||||
|
|
||||||
if (thislogger.isLevelEnabled(level)) {
|
if (thislogger.isLevelEnabled(level)) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user