diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-01-21 00:13:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 00:13:08 +0100 |
commit | c7edf9bf74f7b1e7a53db5365ebf73fcb8a06509 (patch) | |
tree | 86900a95e307f5971d76cb027c98e604bd1895a7 | |
parent | 447cace77f2533e616f82e42787c14f7fcbc039b (diff) | |
download | NorthstarLauncher-c7edf9bf74f7b1e7a53db5365ebf73fcb8a06509.tar.gz NorthstarLauncher-c7edf9bf74f7b1e7a53db5365ebf73fcb8a06509.zip |
Always print masterserver response request id (#633)
Always print masterserver response request id to logs
-rw-r--r-- | primedev/masterserver/masterserver.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/primedev/masterserver/masterserver.cpp b/primedev/masterserver/masterserver.cpp index c4cc22ef..d7e48324 100644 --- a/primedev/masterserver/masterserver.cpp +++ b/primedev/masterserver/masterserver.cpp @@ -1285,6 +1285,16 @@ void MasterServerPresenceReporter::InternalAddServer(const ServerPresence* pServ return ReturnCleanup(MasterServerReportPresenceResult::FailedNoRetry); } + // Log request id for easier debugging when combining with logs on masterserver + if (serverAddedJson.HasMember("id")) + { + spdlog::info("Request id: {}", serverAddedJson["id"].GetString()); + } + else + { + spdlog::error("Couldn't find request id in response"); + } + if (serverAddedJson.HasMember("error")) { if (shouldLogError) |