Skip to content

Commit 3192b7b

Browse files
committed
Use two digits for thread numbers in debug output
1 parent 1d9ba56 commit 3192b7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ std::string logger::generate_common_prefix(fmt::text_style const &ts,
3333
fmt::localtime(std::time(nullptr)));
3434

3535
if (m_current_level == log_level::debug) {
36-
str += fmt::format(ts, "[{}] ", this_thread_num);
36+
str += fmt::format(ts, "[{:02d}] ", this_thread_num);
3737
}
3838

3939
if (prefix) {

0 commit comments

Comments
 (0)