From 2ecb611a7927b69ddd4022b818d18bb8abf86b8d Mon Sep 17 00:00:00 2001 From: Qing Zhang Date: Tue, 19 Jan 2021 07:08:02 -0800 Subject: [PATCH] trace history log messages should print nicely in syslog --- libraries/state_history/log.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/state_history/log.cpp b/libraries/state_history/log.cpp index a9740cc42b7..790dcd725dc 100644 --- a/libraries/state_history/log.cpp +++ b/libraries/state_history/log.cpp @@ -126,8 +126,7 @@ void state_history_log::recover_blocks(uint64_t size) { break; pos = pos + state_history_log_header_serial_size + header.payload_size + sizeof(suffix); if (!(++num_found % 10000)) { - printf("%10u blocks found, log pos=%12llu\r", (unsigned)num_found, (unsigned long long)pos); - fflush(stdout); + dlog("${num_found} blocks found, log pos = ${pos}", ("num_found", num_found)("pos", pos)); } } read_log.flush();