1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

5 Commits

Author SHA1 Message Date
Sebastian Malton
7a5e32bdf6 Don't show sentry preference if init fails
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-08 16:25:12 -04:00
Sebastian Malton
958fe132ae add comments
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-08 16:13:23 -04:00
Sebastian Malton
e643067d0e move most variables to init params, remove initLogError
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-08 16:04:34 -04:00
Sebastian Malton
dd5cd89ba5 Cleanup sentry integration
- Don't setup sentry until after UserStore has been initialized. It
  won't send anything and furthermore UserStore.getInstance() will throw

- Remove isValidURL as we already have input_validators.isUrl

- Remove isValidSentryDsn as Sentry will report that for us.
  Furthermore, the user setting can just assume that it being set in the
  package.json is good enough.

- Move to using import() for the sentry parts as it types correctly in
  TS.

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-08 15:10:52 -04:00
chh
05b1a2fc5d
Add Sentry to capture exceptions and console.error messages, add a checkbox in preference to enable/disable error reporting (#3252) 2021-07-08 19:22:12 +03:00