From b5bc9c83222e9ce9d8e0bb38c77bab5ea834c55f Mon Sep 17 00:00:00 2001 From: muddydixon Date: Tue, 25 Oct 2011 14:28:46 +0900 Subject: [PATCH] mod if nolog --- lib/connect-logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {