Always use INFO severity for express logging

Avoids sending non-200 responses logs to rollbar, when active
This commit is contained in:
Sandro Santilli 2014-03-13 17:13:53 +01:00
parent 4013e84b15
commit 67cc05085f

View File

@ -80,7 +80,7 @@ var loggerOpts = {
};
if ( global.log4js ) {
app.use(log4js.connectLogger(log4js.getLogger(), _.defaults(loggerOpts, {level:'auto'})));
app.use(log4js.connectLogger(log4js.getLogger(), _.defaults(loggerOpts, {level:'info'})));
} else {
app.use(express.logger(loggerOpts));
}