From c610435e2e81e15f4ecf6ed1495014b949437a40 Mon Sep 17 00:00:00 2001 From: Kevin Mas Ruiz Date: Mon, 27 Nov 2023 18:19:21 +0100 Subject: [PATCH] chore: always flush --- packages/logging/src/analytics-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }