diff --git a/src/server/adapters/logger/errorTracker.ts b/src/server/adapters/logger/errorTracker.ts index 069e82f..7ef5f2f 100644 --- a/src/server/adapters/logger/errorTracker.ts +++ b/src/server/adapters/logger/errorTracker.ts @@ -30,7 +30,7 @@ interface ErrorTracker { captureError: (error: ServerError, extra: Extra) => void; flush: () => Promise ; close: (timeout?: number) => Promise; - SENTRY_CLOSE_TIMEOUT?: number; + CLOSE_TIMEOUT?: number; } const getSentry = ({ sentryDSN, environment, version }: SentryGetParams): ErrorTracker => { @@ -82,7 +82,7 @@ const getSentry = ({ sentryDSN, environment, version }: SentryGetParams): ErrorT await flush(); }, close, - SENTRY_CLOSE_TIMEOUT: 2000 + CLOSE_TIMEOUT: 2000 }; }; diff --git a/src/server/adapters/logger/logger.ts b/src/server/adapters/logger/logger.ts index 4c702df..1793bbf 100644 --- a/src/server/adapters/logger/logger.ts +++ b/src/server/adapters/logger/logger.ts @@ -100,7 +100,7 @@ class Logger { } async close(): Promise { - await this.errorTracker?.close(this.errorTracker.SENTRY_CLOSE_TIMEOUT).then(result => { + await this.errorTracker?.close(this.errorTracker.CLOSE_TIMEOUT).then(result => { if (!result) { this.logProvider.error( "Sentry could not be flushed, some error events may have been lost.",