Skip to content

Commit 139a29a

Browse files
authored
fix(cdn): Emit console warning instead of error for integration shims (#10193)
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. fixes getsentry/sentry#63085
1 parent b86652a commit 139a29a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/integration-shims/src/BrowserTracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BrowserTracingShim implements Integration {
2323

2424
consoleSandbox(() => {
2525
// eslint-disable-next-line no-console
26-
console.error('You are using new BrowserTracing() even though this bundle does not include tracing.');
26+
console.warn('You are using new BrowserTracing() even though this bundle does not include tracing.');
2727
});
2828
}
2929

packages/integration-shims/src/Feedback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class FeedbackShim implements Integration {
2323

2424
consoleSandbox(() => {
2525
// eslint-disable-next-line no-console
26-
console.error('You are using new Feedback() even though this bundle does not include Feedback.');
26+
console.warn('You are using new Feedback() even though this bundle does not include Feedback.');
2727
});
2828
}
2929

packages/integration-shims/src/Replay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ReplayShim implements Integration {
2323

2424
consoleSandbox(() => {
2525
// eslint-disable-next-line no-console
26-
console.error('You are using new Replay() even though this bundle does not include replay.');
26+
console.warn('You are using new Replay() even though this bundle does not include replay.');
2727
});
2828
}
2929

0 commit comments

Comments
 (0)