Make DetectoryRegistry a Singleton and initialize in a function (#3538)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-08-04 08:48:33 -04:00
1 parent 9a8616f05e
commit 574aea40b4
5 files changed
+46 -18

No files matched your search

+2 -2
View File
@@ -62,8 +62,6 @@ import { FilesystemProvisionerStore } from "./extension-filesystem";
import { SentryInit } from "../common/sentry";
import { ensureDir } from "fs-extra";
// 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);
@@ -168,6 +166,8 @@ app.on("ready", async () => {
ClusterManager.createInstance().init();
KubeconfigSyncManager.createInstance();
initializers.initClusterMetadataDetectors();
try {
logger.info("🔌 Starting LensProxy");
await lensProxy.listen();