Skip to content

Commit 6c471ac

Browse files
committed
refactor: 移动c=x 在最前面
1 parent d1c4e60 commit 6c471ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/common/debug_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class DebugFormatter {
5454
// 输出固定verbose格式: [STAGE] [c=] message
5555
static std::string format(const DebugInfo& info) {
5656
const std::string prefix = fmt::format("[{}]", info.stage);
57-
const std::string cycle_part = info.cycle ? fmt::format(" [c={}]", *info.cycle) : "";
57+
const std::string cycle_part = info.cycle ? fmt::format("[c={}] ", *info.cycle) : "";
5858

59-
return fmt::format("{}{} {}", prefix, cycle_part, info.message);
59+
return fmt::format("{}{} {}", cycle_part, prefix, info.message);
6060
}
6161
};
6262

0 commit comments

Comments
 (0)