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

Commit

Permalink
fix: remove console.warning when sending events (segmentio#413)
Browse files Browse the repository at this point in the history
Co-authored-by: Oscar Bazaldua <oscar.bazaldua@outlook.com>
  • Loading branch information
oscb and oscb authored Jan 25, 2022
1 parent b701303 commit 954ece1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/plugins/SegmentDestination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 954ece1

Please sign in to comment.