Skip to content

Commit 0ba3554

Browse files
authored
[ISSUE #3997]⚡️Improve logging for commit log loading with distinct success and failure messages (#3998)
1 parent fb091ad commit 0ba3554

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rocketmq-store/src/log_file/commit_log.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ impl CommitLog {
255255
pub fn load(&mut self) -> bool {
256256
let result = self.mapped_file_queue.load();
257257
self.mapped_file_queue.check_self();
258-
info!("load commit log {}", if result { "OK" } else { "Failed" });
258+
if result {
259+
info!("load commit log Ok");
260+
} else {
261+
error!("load commit log failed");
262+
}
259263
result
260264
}
261265

0 commit comments

Comments
 (0)