From c7edf9bf74f7b1e7a53db5365ebf73fcb8a06509 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:13:08 +0100 Subject: Always print masterserver response request id (#633) Always print masterserver response request id to logs --- primedev/masterserver/masterserver.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- cgit v1.2.3