fixed the nolog tests

This commit is contained in:
Gareth Jones
2012-05-09 16:40:27 +10:00
parent 613a077a61
commit 61078e88ef
3 changed files with 85 additions and 86 deletions
+4 -4
View File
@@ -45,8 +45,8 @@ function getLogger(logger4js, options) {
// mount safety
if (req._logging) return next();
// nologs
if(nolog && nolog.test(req.originalUrl)) return next();
// nologs
if (nolog && nolog.test(req.originalUrl)) return next();
if (thislogger.isLevelEnabled(level)) {
@@ -80,7 +80,7 @@ function getLogger(logger4js, options) {
}
};
}
//ensure next gets always called
next();
};
@@ -165,4 +165,4 @@ function createNoLogCondition(nolog, type) {
}
}
exports.connectLogger = getLogger;
exports.connectLogger = getLogger;