From 992578da8a68aba88a180913fc283d451581ee20 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Tue, 16 Jan 2024 09:43:01 +0100 Subject: [PATCH] fix(cdn): Emit console warning instead of error for integration shims This is a bit less "in your face" which is probably more appropriate here - it is not really an error, we just want to let the user know that the integration is not doing anything. --- packages/integration-shims/src/BrowserTracing.ts | 2 +- packages/integration-shims/src/Feedback.ts | 2 +- packages/integration-shims/src/Replay.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integration-shims/src/BrowserTracing.ts b/packages/integration-shims/src/BrowserTracing.ts index 60acf4fc5df5..310dc589afe9 100644 --- a/packages/integration-shims/src/BrowserTracing.ts +++ b/packages/integration-shims/src/BrowserTracing.ts @@ -23,7 +23,7 @@ class BrowserTracingShim implements Integration { consoleSandbox(() => { // eslint-disable-next-line no-console - console.error('You are using new BrowserTracing() even though this bundle does not include tracing.'); + console.warn('You are using new BrowserTracing() even though this bundle does not include tracing.'); }); } diff --git a/packages/integration-shims/src/Feedback.ts b/packages/integration-shims/src/Feedback.ts index 78db6083d3c2..3a1efed9a89a 100644 --- a/packages/integration-shims/src/Feedback.ts +++ b/packages/integration-shims/src/Feedback.ts @@ -23,7 +23,7 @@ class FeedbackShim implements Integration { consoleSandbox(() => { // eslint-disable-next-line no-console - console.error('You are using new Feedback() even though this bundle does not include Feedback.'); + console.warn('You are using new Feedback() even though this bundle does not include Feedback.'); }); } diff --git a/packages/integration-shims/src/Replay.ts b/packages/integration-shims/src/Replay.ts index 921a25c4bdfa..16c905946219 100644 --- a/packages/integration-shims/src/Replay.ts +++ b/packages/integration-shims/src/Replay.ts @@ -23,7 +23,7 @@ class ReplayShim implements Integration { consoleSandbox(() => { // eslint-disable-next-line no-console - console.error('You are using new Replay() even though this bundle does not include replay.'); + console.warn('You are using new Replay() even though this bundle does not include replay.'); }); }