diff options
| author | 2019-09-22 12:28:21 -0400 | |
|---|---|---|
| committer | 2019-09-22 12:34:55 -0400 | |
| commit | 6212df3beb38d0484b6ceedad18be99f107f7d96 (patch) | |
| tree | fea1951fc95ba679834f2d690b19cc7b3de2e574 /src/core/reporter.cpp | |
| parent | lm: Rename Initialize to Log and implement with manager/reporter (diff) | |
| download | yuzu-6212df3beb38d0484b6ceedad18be99f107f7d96.tar.gz yuzu-6212df3beb38d0484b6ceedad18be99f107f7d96.tar.xz yuzu-6212df3beb38d0484b6ceedad18be99f107f7d96.zip | |
lm: Flush manager output on core shutdown
Diffstat (limited to 'src/core/reporter.cpp')
| -rw-r--r-- | src/core/reporter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp index a465d7421..6f4af77fd 100644 --- a/src/core/reporter.cpp +++ b/src/core/reporter.cpp | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | #include <fmt/chrono.h> | 8 | #include <fmt/chrono.h> |
| 9 | #include <fmt/format.h> | 9 | #include <fmt/format.h> |
| 10 | #include <fmt/ostream.h> | 10 | #include <fmt/ostream.h> |
| 11 | #include <fmt/time.h> | ||
| 12 | #include <json.hpp> | 11 | #include <json.hpp> |
| 13 | 12 | ||
| 14 | #include "common/file_util.h" | 13 | #include "common/file_util.h" |
| @@ -393,11 +392,11 @@ void Reporter::SaveLogReport(u32 destination, std::vector<Service::LM::LogMessag | |||
| 393 | out["type"] = fmt::format("{}", kv.first); | 392 | out["type"] = fmt::format("{}", kv.first); |
| 394 | out["data"] = | 393 | out["data"] = |
| 395 | Service::LM::FormatField(kv.first, kv.second); | 394 | Service::LM::FormatField(kv.first, kv.second); |
| 396 | return std::move(out); | 395 | return out; |
| 397 | }); | 396 | }); |
| 398 | 397 | ||
| 399 | out["fields"] = std::move(fields); | 398 | out["fields"] = std::move(fields); |
| 400 | return std::move(out); | 399 | return out; |
| 401 | }); | 400 | }); |
| 402 | 401 | ||
| 403 | out["log_messages"] = std::move(json_messages); | 402 | out["log_messages"] = std::move(json_messages); |