From 58000c808f2cd0c28e62e780bfa7ac6e3b27579e Mon Sep 17 00:00:00 2001 From: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Thu, 7 Sep 2023 17:48:00 +0100 Subject: [PATCH] add exception for dedicated servers --- NorthstarDLL/masterserver/masterserver.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NorthstarDLL/masterserver/masterserver.cpp b/NorthstarDLL/masterserver/masterserver.cpp index 25c08cf3a..985b151d1 100644 --- a/NorthstarDLL/masterserver/masterserver.cpp +++ b/NorthstarDLL/masterserver/masterserver.cpp @@ -8,6 +8,7 @@ #include "shared/misccommands.h" #include "util/version.h" #include "server/auth/bansystem.h" +#include "dedicated/dedicated.h" #include "rapidjson/document.h" #include "rapidjson/stringbuffer.h" @@ -1189,8 +1190,11 @@ void MasterServerPresenceReporter::InternalAddServer(const ServerPresence* pServ }; // don't log errors if we wouldn't actually show up in the server list anyway (stop tickets) + // except for dedis, for which this error logging is actually pretty important bool shouldLogError = - !strstr(pServerPresence->m_MapName, "mp_lobby") && strstr(pServerPresence->m_PlaylistName, "private_match"); + !strstr(pServerPresence->m_MapName, "mp_lobby") + && strstr(pServerPresence->m_PlaylistName, "private_match") + && !IsDedicatedServer(); curl_mime_data(part, modInfo.c_str(), modInfo.size()); curl_mime_name(part, "modinfo");