add log for tests

This commit is contained in:
MathieuG-P
2022-10-11 22:24:43 +02:00
parent 55e94c9e5d
commit dc0d5661b6
@@ -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 => {