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