Skip to content

Commit eedd811

Browse files
authored
feat(vue): Log errors to the console by default (#7310)
Right now our Vue SDK doesn't log errors occurring in the Vue renderer to the console by default. Users need to manually set [`logErrors: true`](https://docs.sentry.io/platforms/javascript/guides/vue/#vue-3---manual-initialization) to enable logging of errors. After an internal discussion, we decided to log errors by default. Users can continue to use `logErrors` to opt out of that.
1 parent 72cb01f commit eedd811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const globalWithVue = GLOBAL_OBJ as typeof GLOBAL_OBJ & { Vue: Vue };
1212
const DEFAULT_CONFIG: Options = {
1313
Vue: globalWithVue.Vue,
1414
attachProps: true,
15-
logErrors: false,
15+
logErrors: true,
1616
hooks: DEFAULT_HOOKS,
1717
timeout: 2000,
1818
trackComponents: false,

0 commit comments

Comments
 (0)