This is an automated email from the ASF dual-hosted git repository. jinrongtong pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push: new 94bb64f731 [ISSUE #8162]Optimize the logging printout for the ConfigManager#loadBak method (#8163) 94bb64f731 is described below commit 94bb64f73160e309438fb000719fff0619355dd4 Author: mxsm <ljbm...@gmail.com> AuthorDate: Tue May 21 08:32:20 2024 +0800 [ISSUE #8162]Optimize the logging printout for the ConfigManager#loadBak method (#8163) --- common/src/main/java/org/apache/rocketmq/common/ConfigManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/org/apache/rocketmq/common/ConfigManager.java b/common/src/main/java/org/apache/rocketmq/common/ConfigManager.java index 5e99759619..099f0d8d56 100644 --- a/common/src/main/java/org/apache/rocketmq/common/ConfigManager.java +++ b/common/src/main/java/org/apache/rocketmq/common/ConfigManager.java @@ -52,8 +52,8 @@ public abstract class ConfigManager { private boolean loadBak() { String fileName = null; try { - fileName = this.configFilePath(); - String jsonString = MixAll.file2String(fileName + ".bak"); + fileName = this.configFilePath() + ".bak"; + String jsonString = MixAll.file2String(fileName); if (jsonString != null && jsonString.length() > 0) { this.decode(jsonString); log.info("load " + fileName + " OK");