logger.warn does not exist

This commit is contained in:
Tom Moor
2019-03-13 09:03:51 -07:00
parent 7b7ec52eee
commit aba3d25700

View File

@ -91,7 +91,7 @@ if (process.env.NODE_ENV === 'development') {
app.on('error', (error, ctx) => {
// we don't need to report every time a request stops to the bug tracker
if (error.code === 'EPIPE' || error.code === 'ECONNRESET') {
logger.warn('Connection error', { error });
console.warn('Connection error', { error });
} else {
bugsnag.koaHandler(error, ctx);
}