lm: Flush manager output on core shutdown

This commit is contained in:
Zach Hilman 2019-09-22 12:28:21 -04:00
parent 7b5b8db19c
commit 13933f0af3
5 changed files with 15 additions and 11 deletions

View file

@ -8,7 +8,6 @@
#include <fmt/chrono.h>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <fmt/time.h>
#include <json.hpp>
#include "common/file_util.h"
@ -393,11 +392,11 @@ void Reporter::SaveLogReport(u32 destination, std::vector<Service::LM::LogMessag
out["type"] = fmt::format("{}", kv.first);
out["data"] =
Service::LM::FormatField(kv.first, kv.second);
return std::move(out);
return out;
});
out["fields"] = std::move(fields);
return std::move(out);
return out;
});
out["log_messages"] = std::move(json_messages);