aboutsummaryrefslogtreecommitdiff
path: root/primedev/masterserver/masterserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/masterserver/masterserver.cpp')
-rw-r--r--primedev/masterserver/masterserver.cpp10
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)