Skip to content

Commit 6ad28f5

Browse files
committed
rephrase warning
1 parent 449dbb8 commit 6ad28f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/core/src/baseclient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
150150
consoleSandbox(() => {
151151
// eslint-disable-next-line no-console
152152
console.warn(
153-
`[Sentry] Deprecation warning: ${undefinedOption} is set to undefined, which leads to tracing being enabled. In v9, you need to set this to 0 to disable tracing.`,
153+
`[Sentry] Deprecation warning: ${undefinedOption} is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
154154
);
155155
});
156156
}

packages/core/test/lib/baseclient.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('BaseClient', () => {
9797

9898
expect(consoleWarnSpy).toHaveBeenCalledTimes(1);
9999
expect(consoleWarnSpy).toBeCalledWith(
100-
`[Sentry] Deprecation warning: ${key} is set to undefined, which leads to tracing being enabled. In v9, you need to set this to 0 to disable tracing.`,
100+
`[Sentry] Deprecation warning: ${key} is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
101101
);
102102
consoleWarnSpy.mockRestore();
103103
});
@@ -110,7 +110,7 @@ describe('BaseClient', () => {
110110

111111
expect(consoleWarnSpy).toHaveBeenCalledTimes(1);
112112
expect(consoleWarnSpy).toBeCalledWith(
113-
`[Sentry] Deprecation warning: ${key} is set to undefined, which leads to tracing being enabled. In v9, you need to set this to 0 to disable tracing.`,
113+
`[Sentry] Deprecation warning: ${key} is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
114114
);
115115
consoleWarnSpy.mockRestore();
116116
});

0 commit comments

Comments
 (0)