Merge remote-tracking branch 'origin/remote_logging_refactoring' into remote_logging_refactoring

This commit is contained in:
BenDr0id 2018-08-02 16:37:12 +02:00
commit cbc56a3a64
3 changed files with 7 additions and 7 deletions

View file

@ -288,7 +288,8 @@ unsigned Service::getClientLog(const std::string& clientId, std::string& resp)
data << m_row.c_str() << std::endl;
}
respDocument.AddMember("client_log", rapidjson::StringRef(data.str().c_str()), allocator);
std::string log = data.str();
respDocument.AddMember("client_log", rapidjson::StringRef(log.c_str()), allocator);
rapidjson::StringBuffer buffer(0, 4096);
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);