Skip to content

Commit 94bb64f

Browse files
authored
[ISSUE #8162]Optimize the logging printout for the ConfigManager#loadBak method (#8163)
1 parent 0ad0244 commit 94bb64f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/org/apache/rocketmq/common/ConfigManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public boolean load() {
5252
private boolean loadBak() {
5353
String fileName = null;
5454
try {
55-
fileName = this.configFilePath();
56-
String jsonString = MixAll.file2String(fileName + ".bak");
55+
fileName = this.configFilePath() + ".bak";
56+
String jsonString = MixAll.file2String(fileName);
5757
if (jsonString != null && jsonString.length() > 0) {
5858
this.decode(jsonString);
5959
log.info("load " + fileName + " OK");

0 commit comments

Comments
 (0)