From e2e8fa3e6da86228bcb336beb735fa98bea73e2d Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:33:28 +0800 Subject: [PATCH] fix __VA_ARGS__ --- src/ulib/log/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ulib/log/log.h b/src/ulib/log/log.h index 82b7904..783d54d 100644 --- a/src/ulib/log/log.h +++ b/src/ulib/log/log.h @@ -17,7 +17,7 @@ namespace tqcq { do { \ std::string __fmt_str; \ try { \ - __fmt_str = fmt::format(fmt_str, ##__VA_ARGS); \ + __fmt_str = fmt::format(fmt_str, ##__VA_ARGS__); \ catch (const std::exception &e) { __fmt_str = e.what(); } \ tqcq::Logger::GetInstance().Log( \ level, __FILE__, __FUNCTION__, __LINE__, tag, \