diff --git a/src/components/GenuineCheck.js b/src/components/GenuineCheck.js index 8c8308a3..82b6f0f1 100644 --- a/src/components/GenuineCheck.js +++ b/src/components/GenuineCheck.js @@ -82,10 +82,17 @@ class GenuineCheck extends PureComponent { await delay(GENUINE_CACHE_DELAY) return true } + + const beforeDate = Date.now() + const res = await getIsGenuine .send({ devicePath: device.path, deviceInfo }) .pipe(timeout(GENUINE_TIMEOUT)) .toPromise() + + logger.log(`genuine check resulted ${res} after ${(Date.now() - beforeDate) / 1000}s`, { + deviceInfo, + }) const isGenuine = res === '0000' if (!isGenuine) { throw new DeviceNotGenuineError()