From 9c7cffe0564a50ea8bd5d44eb6ee6347ff6fe20c Mon Sep 17 00:00:00 2001 From: yinghaoyu <42765754+yinghaoyu@users.noreply.github.com> Date: Wed, 29 May 2024 14:57:00 +0800 Subject: [PATCH] [easylog] fix last_tid (#686) --- 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++] = ' ';