Fix test cases

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-09-10 12:02:00 +01:00
parent 0c8a462e69
commit 3918174f4c
2 changed files with 7 additions and 2 deletions

View File

@@ -658,7 +658,10 @@ public:
std::string buffer;
buffer.reserve(128);
detail::SimpleJsonWriter writer{buffer};
writer.startObject();
if (jsonLogsEnabled_)
{
writer.startObject();
}
attributesFactory(writer);
attributes_ = std::move(buffer);
}