You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`[Sentry] You passed in additional options (${otherOptionsKeys.join(
43
-
', ',
44
-
)}) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your \`sentry.client.config.(js|ts)\` or \`sentry.server.config.(js|ts)\` files.`,
45
-
);
46
-
});
38
+
logger.warn(
39
+
`You passed in additional options (${otherOptionsKeys.join(
40
+
', ',
41
+
)}) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your \`sentry.client.config.(js|ts)\` or \`sentry.server.config.(js|ts)\` files.`,
@@ -234,39 +229,32 @@ export function getUpdatedSourceMapSettings(
234
229
letupdatedSourceMapSetting=viteSourceMap;
235
230
236
231
constsettingKey='vite.build.sourcemap';
232
+
constdebug=sentryOptions?.debug;
237
233
238
234
if(viteSourceMap===false){
239
235
previousUserSourceMapSetting='disabled';
240
236
updatedSourceMapSetting=viteSourceMap;
241
237
242
-
consoleSandbox(()=>{
243
-
// eslint-disable-next-line no-console
244
-
console.warn(
245
-
`[Sentry] Source map generation is currently disabled in your Astro configuration (\`${settingKey}: false\`). This setting is either a default setting or was explicitly set in your configuration. Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified. To show unminified code, enable source maps in \`${settingKey}\` (e.g. by setting them to \`hidden\`).`,
238
+
debug&&
239
+
logger.warn(
240
+
`Source map generation is currently disabled in your Astro configuration (\`${settingKey}: false\`). This setting is either a default setting or was explicitly set in your configuration. Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified. To show unminified code, enable source maps in \`${settingKey}\` (e.g. by setting them to \`hidden\`).`,
`[Sentry] We discovered \`${settingKey}\` is set to \`${viteSourceMap.toString()}\`. Sentry will keep this source map setting. This will un-minify the code snippet on the Sentry Issue page.`,
257
-
);
258
-
});
259
-
}
246
+
debug&&
247
+
logger.info(
248
+
`We discovered \`${settingKey}\` is set to \`${viteSourceMap.toString()}\`. Sentry will keep this source map setting. This will un-minify the code snippet on the Sentry Issue page.`,
249
+
);
260
250
}else{
261
251
previousUserSourceMapSetting='unset';
262
252
updatedSourceMapSetting='hidden';
263
253
264
-
consoleSandbox(()=>{
265
-
// eslint-disable-next-line no-console
266
-
console.log(
267
-
`[Sentry] Enabled source map generation in the build options with \`${settingKey}: 'hidden'\`. The source maps will be deleted after they were uploaded to Sentry.`,
254
+
debug&&
255
+
logger.info(
256
+
`Enabled source map generation in the build options with \`${settingKey}: 'hidden'\`. The source maps will be deleted after they were uploaded to Sentry.`,
'[Sentry] You passed in additional options (environment, release, dsn) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your `sentry.client.config.(js|ts)` or `sentry.server.config.(js|ts)` files.',
325
+
expect(logger.warn).toHaveBeenCalledWith(
326
+
'You passed in additional options (environment, release, dsn) to the Sentry integration. This is deprecated and will stop working in a future version. Instead, configure the Sentry SDK in your `sentry.client.config.(js|ts)` or `sentry.server.config.(js|ts)` files.',
0 commit comments