Skip to content

Commit

Permalink
feat(vue): Log errors to the console by default (#7310)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lms24 committed Mar 1, 2023
1 parent 72cb01f commit eedd811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const globalWithVue = GLOBAL_OBJ as typeof GLOBAL_OBJ & { Vue: Vue };
const DEFAULT_CONFIG: Options = {
Vue: globalWithVue.Vue,
attachProps: true,
logErrors: false,
logErrors: true,
hooks: DEFAULT_HOOKS,
timeout: 2000,
trackComponents: false,
Expand Down

0 comments on commit eedd811

Please sign in to comment.