mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
chore(core): Stop reporting errors to Sentry for older releases (no-changelog) (#13323)
This commit is contained in:
committed by
GitHub
parent
aae55fe7ac
commit
ac1f651905
@@ -63,6 +63,7 @@ export abstract class BaseCommand extends Command {
|
||||
async init(): Promise<void> {
|
||||
this.errorReporter = Container.get(ErrorReporter);
|
||||
|
||||
const { releaseDate } = this.globalConfig.generic;
|
||||
const { backendDsn, n8nVersion, environment, deploymentName } = this.globalConfig.sentry;
|
||||
await this.errorReporter.init({
|
||||
serverType: this.instanceSettings.instanceType,
|
||||
@@ -70,6 +71,7 @@ export abstract class BaseCommand extends Command {
|
||||
environment,
|
||||
release: n8nVersion,
|
||||
serverName: deploymentName,
|
||||
releaseDate,
|
||||
});
|
||||
initExpressionEvaluator();
|
||||
|
||||
@@ -294,6 +296,8 @@ export abstract class BaseCommand extends Command {
|
||||
|
||||
await this.shutdownService.waitForShutdown();
|
||||
|
||||
await this.errorReporter.shutdown();
|
||||
|
||||
await this.stopProcess();
|
||||
|
||||
clearTimeout(forceShutdownTimer);
|
||||
|
||||
Reference in New Issue
Block a user