diff options
Diffstat (limited to 'primedev/masterserver')
-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) |