mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix: Load sentry for task runner server only if configured (no-changelog) (#11420)
This commit is contained in:
@@ -125,11 +125,13 @@ export class TaskRunnerServer {
|
|||||||
const { app } = this;
|
const { app } = this;
|
||||||
|
|
||||||
// Augment errors sent to Sentry
|
// Augment errors sent to Sentry
|
||||||
const {
|
if (this.globalConfig.sentry.backendDsn) {
|
||||||
Handlers: { requestHandler, errorHandler },
|
const {
|
||||||
} = await import('@sentry/node');
|
Handlers: { requestHandler, errorHandler },
|
||||||
app.use(requestHandler());
|
} = await import('@sentry/node');
|
||||||
app.use(errorHandler());
|
app.use(requestHandler());
|
||||||
|
app.use(errorHandler());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private setupCommonMiddlewares() {
|
private setupCommonMiddlewares() {
|
||||||
|
|||||||
Reference in New Issue
Block a user