diff --git a/lib/connect-logger.js b/lib/connect-logger.js index b775775..fed77b9 100644 --- a/lib/connect-logger.js +++ b/lib/connect-logger.js @@ -46,7 +46,7 @@ function getLogger(logger4js, options) { if (req._logging) return next(); // nologs - if(nolog.test(req.url)) return next(); + if(nolog && nolog.test(req.url)) return next(); if (thislogger.isLevelEnabled(level)) {