From ccd3e08c7f7bb9cb51f2d485d6485bdefa28b63b Mon Sep 17 00:00:00 2001 From: Oscar Bazaldua Date: Mon, 24 Jan 2022 16:41:33 -0800 Subject: [PATCH] fix: remove console.warning when sending events --- packages/core/src/plugins/SegmentDestination.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/plugins/SegmentDestination.ts b/packages/core/src/plugins/SegmentDestination.ts index 0088cc5f7..97da5aba4 100644 --- a/packages/core/src/plugins/SegmentDestination.ts +++ b/packages/core/src/plugins/SegmentDestination.ts @@ -78,7 +78,9 @@ export class SegmentDestination extends DestinationPlugin { ); if (sentEvents.length) { - console.warn(`Sent ${sentEvents.length} events`); + if (this.analytics?.getConfig().debug) { + console.info(`Sent ${sentEvents.length} events`); + } } if (numFailedEvents) {