change check target from req.url to req.originalUrl

This commit is contained in:
muddydixon 2011-10-29 11:55:46 +09:00
parent b5bc9c8322
commit 5aabebbdb7

View File

@ -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)) {