From 954ece14ef6a76d98d7957e70d0038b47dcf6ea2 Mon Sep 17 00:00:00 2001 From: Oscar Bazaldua <511911+oscb@users.noreply.github.com> Date: Tue, 25 Jan 2022 09:25:27 -0800 Subject: [PATCH] fix: remove console.warning when sending events (#413) Co-authored-by: Oscar Bazaldua --- 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) {