Move log to after fromStore

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-07-06 10:21:38 -04:00
1 parent 4e5c5177c8
commit 3ad2f69500
1 file changed
+2 -2
+2 -2
View File
@@ -56,8 +56,6 @@ export abstract class BaseStore<T> extends Singleton {
cwd: this.cwd(), cwd: this.cwd(),
}); });
logger.info(`[STORE]: LOADED from ${this.path}`);
const res: any = this.fromStore(this.storeConfig.store); const res: any = this.fromStore(this.storeConfig.store);
if (res instanceof Promise || (typeof res === "object" && res && typeof res.then === "function")) { if (res instanceof Promise || (typeof res === "object" && res && typeof res.then === "function")) {
@@ -65,6 +63,8 @@ export abstract class BaseStore<T> extends Singleton {
} }
this.enableSync(); this.enableSync();
logger.info(`[STORE]: LOADED from ${this.path}`);
} }
get name() { get name() {