diff --git a/packages/logging/src/analytics-helpers.ts b/packages/logging/src/analytics-helpers.ts index 390287146..dc0b162d8 100644 --- a/packages/logging/src/analytics-helpers.ts +++ b/packages/logging/src/analytics-helpers.ts @@ -406,6 +406,6 @@ export class SampledAnalytics implements MongoshAnalytics { } flush(callback: (err?: Error | undefined) => void): void { - this.isEnabled && this.target.flush(callback); + this.target.flush(callback); } }