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