We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fb04f commit f568c4aCopy full SHA for f568c4a
core/shared/sentry.js
@@ -2,10 +2,6 @@ const config = require('./config');
2
const sentryConfig = config.get('sentry');
3
const errors = require('@tryghost/errors');
4
5
-const expressNoop = function (req, res, next) {
6
- next();
7
-};
8
-
9
if (sentryConfig && !sentryConfig.disabled) {
10
const Sentry = require('@sentry/node');
11
const version = require('../server/lib/ghost-version').full;
@@ -34,6 +30,10 @@ if (sentryConfig && !sentryConfig.disabled) {
34
30
captureException: Sentry.captureException
35
31
};
36
32
} else {
33
+ const expressNoop = function (req, res, next) {
+ next();
+ };
+
37
module.exports = {
38
requestHandler: expressNoop,
39
errorHandler: expressNoop,
0 commit comments