We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c49de commit 6556a74Copy full SHA for 6556a74
1 file changed
include/MaaUtils/LoggerUtils.h
@@ -103,7 +103,9 @@ class MAA_UTILS_API LogStream
103
template <typename T>
104
void stream(T&& value, const separator& sep)
105
{
106
- buffer_ << json::value(std::forward<T>(value)).dumps() << sep.str;
+ json::value(std::forward<T>(value)) j;
107
+ // 直接 dumps 的 string 会多一对双引号,有点难看
108
+ buffer_ << j.is_string() ? j.as_string() : j.dumps() << sep.str;
109
}
110
111
template <typename... args_t>
0 commit comments