Kind of a hack but makes issue #158 go away.

There is probably a deeper error somewhere in either log4js or express, I don't have the time to investigate that atm.
This commit is contained in:
Thomas Frössman 2011-10-17 23:31:39 +02:00
parent fb158d2eb8
commit 8223f84714
1 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,7 @@ async.waterfall([
var httpLogger = log4js.getLogger("http"); var httpLogger = log4js.getLogger("http");
app.configure(function() app.configure(function()
{ {
if (!(settings.loglevel === "WARN" || settings.loglevel == "ERROR"))
app.use(log4js.connectLogger(httpLogger, { level: log4js.levels.INFO, format: ':status, :method :url'})); app.use(log4js.connectLogger(httpLogger, { level: log4js.levels.INFO, format: ':status, :method :url'}));
app.use(express.cookieParser()); app.use(express.cookieParser());
}); });