Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 954ece1

Browse files
authored
fix: remove console.warning when sending events (segmentio#413)
Co-authored-by: Oscar Bazaldua <[email protected]>
1 parent b701303 commit 954ece1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/plugins/SegmentDestination.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export class SegmentDestination extends DestinationPlugin {
7878
);
7979

8080
if (sentEvents.length) {
81-
console.warn(`Sent ${sentEvents.length} events`);
81+
if (this.analytics?.getConfig().debug) {
82+
console.info(`Sent ${sentEvents.length} events`);
83+
}
8284
}
8385

8486
if (numFailedEvents) {

0 commit comments

Comments
 (0)