Update language and add debug

This commit is contained in:
Owen
2026-09-22 10:37:52 -04:00
parent 0de5c763b3
commit d38281b9f7
3 changed files with 47 additions and 9 deletions
+12
View File
@@ -297,6 +297,11 @@ LQIDAQAB
if (!apiResponse?.success) {
throw new Error(apiResponse?.error);
}
logger.debug(
`License server response: ${JSON.stringify(apiResponse)}`
);
// Reset failure count on success
this.phoneHomeFailureCount = 0;
} catch (e) {
@@ -359,6 +364,11 @@ LQIDAQAB
licenseKeyRes,
this.publicKey
);
logger.debug(
`Decoded license key ${key.licenseKey}: ${JSON.stringify(payload)}`
);
cached.valid = payload.valid;
cached.type = payload.type;
cached.tier = payload.tier;
@@ -451,6 +461,8 @@ LQIDAQAB
this.checkInProgress = false;
}
logger.debug(`Computed license status: ${JSON.stringify(status)}`);
this.statusCache.set(this.statusKey, status, 0);
return status;
}