From 4cf1d1cfa48166462d1cb237299d8fceb87898b7 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Wed, 7 Dec 2011 15:28:35 +0100 Subject: [PATCH] Fixed a BUG that prevents connectlogger from working if loglevel is WARN --- lib/connect-logger.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/connect-logger.js b/lib/connect-logger.js index bad8a79..5658d45 100644 --- a/lib/connect-logger.js +++ b/lib/connect-logger.js @@ -79,9 +79,10 @@ function getLogger(logger4js, options) { thislogger.log(level, format(fmt, req, res)); } }; - - next(); } + + //ensure next gets always called + next(); }; }