From e423b38db24a34aaa958ef1b930c666bedbe5810 Mon Sep 17 00:00:00 2001 From: renliangyu857 <2918490262@qq.com> Date: Thu, 29 Dec 2022 11:34:13 +0800 Subject: [PATCH] optimize: log message level (#5212) --- changes/en-us/develop.md | 3 +-- changes/zh-cn/develop.md | 2 +- .../java/io/seata/console/utils/JwtTokenUtils.java | 10 +++++----- .../seata/core/exception/AbstractExceptionHandler.java | 4 ++-- .../java/io/seata/rm/datasource/DataSourceManager.java | 2 +- .../io/seata/rm/datasource/xa/ResourceManagerXA.java | 6 +++--- .../seata/server/coordinator/DefaultCoordinator.java | 4 ++-- .../java/io/seata/server/coordinator/DefaultCore.java | 5 +++-- .../java/io/seata/server/session/SessionHolder.java | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/changes/en-us/develop.md b/changes/en-us/develop.md index ad1bc17fd16..d19fb1b8e54 100644 --- a/changes/en-us/develop.md +++ b/changes/en-us/develop.md @@ -6,12 +6,11 @@ Add changes here for all PR submitted to the develop branch. - [[#xxx](https://github.com/seata/seata/pull/xxx)] support xxx ### bugfix: -- [[#xxx](https://github.com/seata/seata/pull/xxx)] fix xxx - [[#5194](https://github.com/seata/seata/pull/5194)] fix wrong keyword order for oracle when creating a table - [[#5021](https://github.com/seata/seata/pull/5201)] Fix JDK Reflection for Spring origin proxy failed in JDK17 ### optimize: -- [[#xxx](https://github.com/seata/seata/pull/xxx)] optimize xxx +- [[#5212](https://github.com/seata/seata/pull/5212)] optimize log message level ### test: - [[#xxx](https://github.com/seata/seata/pull/xxx)] add test for xxx diff --git a/changes/zh-cn/develop.md b/changes/zh-cn/develop.md index 85bc34e0da1..63921213087 100644 --- a/changes/zh-cn/develop.md +++ b/changes/zh-cn/develop.md @@ -11,7 +11,7 @@ - [[#5021](https://github.com/seata/seata/pull/5201)] 修复 JDK17 下获取 Spring 原始代理对象失败的问题 ### optimize: -- [[#xxx](https://github.com/seata/seata/pull/xxx)] 优化 xxx +- [[#5212](https://github.com/seata/seata/pull/5212)] 优化不合理的日志信息级别 ### test: - [[#xxx](https://github.com/seata/seata/pull/xxx)] 增加 xxx 测试 diff --git a/console/src/main/java/io/seata/console/utils/JwtTokenUtils.java b/console/src/main/java/io/seata/console/utils/JwtTokenUtils.java index 1c5d46f2939..9166955882b 100644 --- a/console/src/main/java/io/seata/console/utils/JwtTokenUtils.java +++ b/console/src/main/java/io/seata/console/utils/JwtTokenUtils.java @@ -119,19 +119,19 @@ public boolean validateToken(String token) { Jwts.parser().setSigningKey(secretKey).parseClaimsJws(token); return true; } catch (SignatureException e) { - LOGGER.info("Invalid JWT signature."); + LOGGER.warn("Invalid JWT signature."); LOGGER.trace("Invalid JWT signature trace: {}", e); } catch (MalformedJwtException e) { - LOGGER.info("Invalid JWT token."); + LOGGER.warn("Invalid JWT token."); LOGGER.trace("Invalid JWT token trace: {}", e); } catch (ExpiredJwtException e) { - LOGGER.info("Expired JWT token."); + LOGGER.warn("Expired JWT token."); LOGGER.trace("Expired JWT token trace: {}", e); } catch (UnsupportedJwtException e) { - LOGGER.info("Unsupported JWT token."); + LOGGER.warn("Unsupported JWT token."); LOGGER.trace("Unsupported JWT token trace: {}", e); } catch (IllegalArgumentException e) { - LOGGER.info("JWT token compact of handler are invalid."); + LOGGER.warn("JWT token compact of handler are invalid."); LOGGER.trace("JWT token compact of handler are invalid trace: {}", e); } return false; diff --git a/core/src/main/java/io/seata/core/exception/AbstractExceptionHandler.java b/core/src/main/java/io/seata/core/exception/AbstractExceptionHandler.java index 013fd901557..b859e984a69 100644 --- a/core/src/main/java/io/seata/core/exception/AbstractExceptionHandler.java +++ b/core/src/main/java/io/seata/core/exception/AbstractExceptionHandler.java @@ -132,10 +132,10 @@ public