Include Agent version to the firmware update log.

This commit is contained in:
László Monda
2018-09-25 15:48:27 +02:00
parent f3bd83af03
commit 5a843ed02c

View File

@@ -31,6 +31,7 @@ import {
getPackageJsonFromPathAsync, getPackageJsonFromPathAsync,
saveTmpFirmware saveTmpFirmware
} from '../util'; } from '../util';
import { getVersions } from '../../../uhk-web/src/app/util';
/** /**
* IpcMain pair of the UHK Communication * IpcMain pair of the UHK Communication
@@ -161,6 +162,7 @@ export class DeviceService {
let firmwarePathData: TmpFirmware; let firmwarePathData: TmpFirmware;
try { try {
this.logService.debug('Agent version:', getVersions().version);
const hardwareModules = await this.getHardwareModules(false); const hardwareModules = await this.getHardwareModules(false);
this.logService.debug('Device right firmware version:', hardwareModules.rightModuleInfo.firmwareVersion); this.logService.debug('Device right firmware version:', hardwareModules.rightModuleInfo.firmwareVersion);
this.logService.debug('Device left firmware version:', hardwareModules.leftModuleInfo.firmwareVersion); this.logService.debug('Device left firmware version:', hardwareModules.leftModuleInfo.firmwareVersion);