mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cleanup sentry integration (#3315)
This commit is contained in:
1 parent
05b1a2fc5d
commit
77f8ea67bd
9 files changed
+78
-175
No files matched your search
+8
-3
@@ -61,8 +61,6 @@ import { ExtensionsStore } from "../extensions/extensions-store";
|
||||
import { FilesystemProvisionerStore } from "./extension-filesystem";
|
||||
import { SentryInit } from "../common/sentry";
|
||||
|
||||
SentryInit();
|
||||
|
||||
const workingDir = path.join(app.getPath("appData"), appName);
|
||||
const cleanup = disposer();
|
||||
|
||||
@@ -141,8 +139,15 @@ app.on("ready", async () => {
|
||||
|
||||
logger.info("💾 Loading stores");
|
||||
|
||||
ClusterStore.createInstance().provideInitialFromMain();
|
||||
UserStore.createInstance().startMainReactions();
|
||||
|
||||
/**
|
||||
* There is no point setting up sentry before UserStore is initialized as
|
||||
* `allowErrorReporting` will always be falsy.
|
||||
*/
|
||||
await SentryInit();
|
||||
|
||||
ClusterStore.createInstance().provideInitialFromMain();
|
||||
HotbarStore.createInstance();
|
||||
ExtensionsStore.createInstance();
|
||||
FilesystemProvisionerStore.createInstance();
|
||||
|
||||
Reference in new issue
Block a user