[easylog] fix last_tid (#686)

This commit is contained in:
yinghaoyu 2024-05-29 14:57:00 +08:00 committed by GitHub
parent 476b5842d4
commit 9c7cffe056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ class appender {
auto [ptr, ec] = std::to_chars(buf + 1, buf + 21, tid);
buf[22] = ']';
buf[23] = ' ';
last_tid = tid;
last_len = ptr - buf;
buf[last_len++] = ']';
buf[last_len++] = ' ';