summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfengjunfeng <[email protected]>2022-01-07 13:53:41 +0800
committerfengjunfeng <[email protected]>2022-01-07 13:53:41 +0800
commitf9f2c3069f721bb42f3e89304caff655eacca5ae (patch)
tree4da3752b34f6a840af3712a2f1c5dcde39e37ee8
parentc1fba579205a4ac5407d6c14101163398f956fa0 (diff)
日志打印内容调整
-rw-r--r--src/main/java/com/sentinel/license/utils/HaspUtil.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/main/java/com/sentinel/license/utils/HaspUtil.java b/src/main/java/com/sentinel/license/utils/HaspUtil.java
index c99f1db..04d9780 100644
--- a/src/main/java/com/sentinel/license/utils/HaspUtil.java
+++ b/src/main/java/com/sentinel/license/utils/HaspUtil.java
@@ -101,13 +101,13 @@ public class HaspUtil {
Hasp hasp = new Hasp(featureId);
hasp.login(vendorCode);
int status = hasp.getLastError();
- log.info("license status: {}", status);
+ log.info("query license status: {}", status);
if(status == HaspStatus.HASP_STATUS_OK) {
String licenseInfo = hasp.getSessionInfo(LICENSE_STATUS);
status = hasp.getLastError();
- log.info("license status: {}", status);
+// log.info("license status: {}", status);
if (status != HaspStatus.HASP_STATUS_OK) {
- log.error("Error: updateLicense Fails with status code :{}",status);
+
}
return licenseInfo;
}else if (status == HaspStatus.HASP_FEATURE_EXPIRED){
@@ -133,7 +133,7 @@ public class HaspUtil {
Hasp hasp = new Hasp(Hasp.HASP_DEFAULT_FID);
hasp.update(v2c);
int status = hasp.getLastError();
- log.info("license status: {}", status);
+ log.info("updateLicense license status: {}", status);
if (status != HaspStatus.HASP_STATUS_OK) {
log.error("Error: updateLicense Fails with status code :{}",status);
}
@@ -151,21 +151,22 @@ public class HaspUtil {
Hasp hasp = new Hasp(featureId);
hasp.login(vendorCode);
int status = hasp.getLastError();
- log.info("license status: {}", status);
+// log.info("license status: {}", status);
if(status == HaspStatus.HASP_STATUS_OK) {
//如果已经安装过license ,读取指纹和 hasp id
String licenseInfo = hasp.getSessionInfo(KEY_C2V_FORMAT);
+// String licenseInfo = hasp.getInfo(KEY_SCOPE,KEY_C2V_FORMAT,vendorCode);
status = hasp.getLastError();
- log.info("license status: {}", status);
+ log.info("getLicense c2v license status: {}", status);
if (status != HaspStatus.HASP_STATUS_OK) {
- log.error("Error: updateLicense Fails with status code :{}",status);
+ log.error("Error: Download Fails with status code :{}",status);
}
return licenseInfo;
}else {
hasp = new Hasp(featureId);
String infos = hasp.getInfo(KEY_SCOPE, KEY_VIEW, vendorCode);
status = hasp.getLastError();
- log.info("license status: {}", status);
+ log.info("getLicense c2v license status: {}", status);
if(status != HaspStatus.HASP_STATUS_OK) {
log.error("Error: getLicense c2v Fails with status code :{}",status);
throw new RuntimeException();
@@ -178,7 +179,7 @@ public class HaspUtil {
Hasp hasp = new Hasp(fetureId);
hasp.login(vendorCode);
int status = hasp.getLastError();
- log.info("license status: {}", status);
+ log.info("verify license status: {}", status);
if(status != HaspStatus.HASP_STATUS_OK) {
log.error("Error: license login Fails with status code :{}",status);
}