From 2ec0194d16ddb53a5cb8348c585d55fac29de796 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 10 Aug 2021 19:13:53 +0800 Subject: [PATCH] =?UTF-8?q?ftx:=20=E5=A2=9E=E5=8A=A0lic=E9=AA=8C=E8=AF=81l?= =?UTF-8?q?og?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/commons/license/DefaultLicenseService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/main/java/io/dataease/commons/license/DefaultLicenseService.java b/backend/src/main/java/io/dataease/commons/license/DefaultLicenseService.java index 07a651d3b3..f79f9afc54 100644 --- a/backend/src/main/java/io/dataease/commons/license/DefaultLicenseService.java +++ b/backend/src/main/java/io/dataease/commons/license/DefaultLicenseService.java @@ -3,6 +3,7 @@ package io.dataease.commons.license; import com.google.gson.Gson; import io.dataease.base.domain.License; import io.dataease.commons.exception.DEException; +import io.dataease.commons.utils.LogUtil; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @@ -31,6 +32,7 @@ public class DefaultLicenseService { command.add(licenseKey); try{ execCommand(result, command); + LogUtil.info("read lic content is : " + result.toString()); F2CLicenseResponse f2CLicenseResponse = new Gson().fromJson(result.toString(), F2CLicenseResponse.class); if(f2CLicenseResponse.getStatus() != F2CLicenseResponse.Status.valid){ return f2CLicenseResponse; @@ -43,6 +45,7 @@ public class DefaultLicenseService { } return f2CLicenseResponse; }catch (Exception e){ + e.printStackTrace(); return F2CLicenseResponse.invalid(e.getMessage()); } }