Always use INFO severity for express logging
Avoids sending non-200 responses logs to rollbar, when active
This commit is contained in:
parent
4013e84b15
commit
67cc05085f
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user