From 07824c9ec3ec3695a3d323da3c23136f266d59eb Mon Sep 17 00:00:00 2001 From: fuhouyu Date: Mon, 28 Oct 2024 20:56:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20logUtil=20debug=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fuhouyu/framework/common/utils/LoggerUtil.java | 2 +- .../com/fuhouyu/framework/security/entity/TokenEntity.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base-framework-common/src/main/java/com/fuhouyu/framework/common/utils/LoggerUtil.java b/base-framework-common/src/main/java/com/fuhouyu/framework/common/utils/LoggerUtil.java index 8618f45..1e345bf 100644 --- a/base-framework-common/src/main/java/com/fuhouyu/framework/common/utils/LoggerUtil.java +++ b/base-framework-common/src/main/java/com/fuhouyu/framework/common/utils/LoggerUtil.java @@ -69,7 +69,7 @@ public static void error(Logger logger, String msg, Object... args) { */ public static void debug(Logger logger, String msg, Object... args) { if (logger.isDebugEnabled()) { - logger.error(msg, args); + logger.debug(msg, args); } } diff --git a/base-framework-security-starter/src/main/java/com/fuhouyu/framework/security/entity/TokenEntity.java b/base-framework-security-starter/src/main/java/com/fuhouyu/framework/security/entity/TokenEntity.java index 224a857..6d1ce7b 100644 --- a/base-framework-security-starter/src/main/java/com/fuhouyu/framework/security/entity/TokenEntity.java +++ b/base-framework-security-starter/src/main/java/com/fuhouyu/framework/security/entity/TokenEntity.java @@ -36,7 +36,7 @@ @Getter @Setter @ToString -public class TokenEntity implements Entity { +public class TokenEntity implements Entity { @Serial private static final long serialVersionUID = 1897123986123785612L; @@ -55,7 +55,7 @@ public TokenEntity(OAuth2AccessToken accessToken, OAuth2RefreshToken refreshToke } @Override - public boolean sameIdentityAs(TokenEntity other) { + public boolean sameIdentityAs(OAuth2AccessToken other) { return EqualsBuilder.reflectionEquals(this, other); } }