mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 06:19:40 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user