reduce error log spam: don't error on client id mismatch and don't log abort in worker matchmaking polling

This commit is contained in:
evanpelle
2026-02-18 15:42:00 -06:00
parent f1cd478970
commit f7ebde1c7f
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ export class GameServer {
c.clientID !== client.clientID,
);
if (conflicting !== undefined) {
this.log.error("client ids do not match", {
this.log.warn("client ids do not match", {
clientID: client.clientID,
clientIP: ipAnonymize(client.ip),
clientPersistentID: client.persistentID,
+4
View File
@@ -574,6 +574,10 @@ async function startMatchmakingPolling(gm: GameManager) {
}, 7000);
}
} catch (error) {
if (error instanceof Error && error.name === "AbortError") {
// Abort is expected if no game is scheduled on this worker.
return;
}
log.error(`Error polling lobby:`, error);
}
},