From 1c9d05ef7793d4509cdf4e684647f96c776de64e Mon Sep 17 00:00:00 2001 From: yinghaoyu <42765754+yinghaoyu@users.noreply.github.com> Date: Wed, 29 May 2024 14:30:07 +0800 Subject: [PATCH] [easylog] fix last_tid --- include/ylt/easylog/appender.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ylt/easylog/appender.hpp b/include/ylt/easylog/appender.hpp index 9118bd774..08f6772e2 100644 --- a/include/ylt/easylog/appender.hpp +++ b/include/ylt/easylog/appender.hpp @@ -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++] = ' ';