Fix Sentry integration bugs (#3325)

This commit is contained in:
chh authored and GitHub committed 2021-07-12 09:42:51 -04:00
1 parent ff704b5d3d
commit f86360d641
5 files changed
+45 -66

No files matched your search

+4 -6
View File
@@ -61,6 +61,10 @@ import { ExtensionsStore } from "../extensions/extensions-store";
import { FilesystemProvisionerStore } from "./extension-filesystem";
import { SentryInit } from "../common/sentry";
// This has to be called before start using winton-based logger
// For example, before any logger.log
SentryInit();
const workingDir = path.join(app.getPath("appData"), appName);
const cleanup = disposer();
@@ -141,12 +145,6 @@ app.on("ready", async () => {
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();