Netplay: Don't log skippable events as errors

This commit is contained in:
Floogle committed 2023-10-28 18:06:07 +02:00
1 parent 220988d064
commit bee6d5bfb6
5 files changed
+16 -5

No files matched your search

+5 -1
View File
@@ -386,7 +386,11 @@ void NetPlayServer::ThreadFunc()
}
break;
default:
ERROR_LOG_FMT(NETPLAY, "enet_host_service: unknown event type: {}", int(netEvent.type));
// not a valid switch case due to not technically being part of the enum
if (netEvent.type == Common::ENet::SKIPPABLE_EVENT)
INFO_LOG_FMT(NETPLAY, "enet_host_service: skippable packet event");
else
ERROR_LOG_FMT(NETPLAY, "enet_host_service: unknown event type: {}", int(netEvent.type));
break;
}
}