From dc0d5661b6c3d2ee6f30324de20aba26395a1dc1 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Tue, 11 Oct 2022 22:24:43 +0200 Subject: [PATCH] add log for tests --- src/main/services/bs-local-version.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/services/bs-local-version.service.ts b/src/main/services/bs-local-version.service.ts index 5b547789..8ffb588d 100644 --- a/src/main/services/bs-local-version.service.ts +++ b/src/main/services/bs-local-version.service.ts @@ -11,6 +11,7 @@ import fs from "fs-extra"; import { ConfigurationService } from "./configuration.service"; import { rename } from "fs/promises"; import { BsmException } from "shared/models/bsm-exception.model"; +import log from "electron-log"; export class BSLocalVersionService{ @@ -113,6 +114,7 @@ export class BSLocalVersionService{ const folderInInstallation = this.utilsService.listDirsInDir(this.installLocationService.versionsDirectory); folderInInstallation.forEach(f => { + log.info("try get version from folder", f); let version = this.remoteVersionService.getVersionDetails(f); if(version){ version = this.getCustomVersions().find(v => v.BSVersion === version.BSVersion && v.name === version.name) ?? version; } else { version = this.getCustomVersions().find(v => {