Skip to content

Commit

Permalink
Merge pull request #1 from gupy-io/update-sentry
Browse files Browse the repository at this point in the history
Update 'raven' reference to new sentry version
  • Loading branch information
nandoofz authored Dec 4, 2019
2 parents 32a0188 + 02c402c commit b2a5fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ module.exports.createApp = ({ integrityCheckers }) => {
};

module.exports.injectMiddlewaresAndListen = async ({
app, isSentryEnabled, isDevelopment, isLogRequestEnabled, logger, raven,
app, isSentryEnabled, isDevelopment, isLogRequestEnabled, logger, sentry,
closeSequelize, port, env, appRoot, swaggerFile, isElasticApmEnabled, isNewRelicApmEnabled,
requestTraceMiddleware, prometheusMiddleware, auditTrailMiddleware, unexpectedError,
}) => {
UnexpectedError = unexpectedError;

if (isSentryEnabled) {
app.use(raven.requestHandler());
app.use(sentry.Handlers.requestHandler());
}

if (isLogRequestEnabled) {
Expand Down

0 comments on commit b2a5fbc

Please sign in to comment.