From a9d1296e29379ccb1c066a7ac7325e7a3f87d10a Mon Sep 17 00:00:00 2001 From: Cyp Date: Sun, 1 Aug 2010 22:34:48 +0200 Subject: [PATCH] newnet: Demote LOG_ERROR to LOG_NEVER, when droids are destroyed just after being sent orders, since LOG_ERROR isn't for expected behaviour. Also, demote LOG_WARNING to LOG_FEATURE, when features are destroyed. --- src/multibot.cpp | 2 +- src/multiplay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multibot.cpp b/src/multibot.cpp index 12be8281e..5f012b4d1 100644 --- a/src/multibot.cpp +++ b/src/multibot.cpp @@ -704,7 +704,7 @@ BOOL recvDroidInfo(NETQUEUE queue) DROID *psDroid = NULL; if (!IdToDroid(info.droidId, ANYPLAYER, &psDroid)) { - debug(LOG_ERROR, "Packet from %d refers to non-existent droid %u, [%s : p%d]", + debug(LOG_NEVER, "Packet from %d refers to non-existent droid %u, [%s : p%d]", queue.index, info.droidId, isHumanPlayer(info.player) ? "Human" : "AI", info.player); continue; // Can't find the droid, so skip this droid. } diff --git a/src/multiplay.c b/src/multiplay.c index b57b5898a..f807c20d8 100644 --- a/src/multiplay.c +++ b/src/multiplay.c @@ -1607,7 +1607,7 @@ BOOL recvDestroyFeature(NETQUEUE queue) pF = IdToFeature(id,ANYPLAYER); if (pF == NULL) { - debug(LOG_WARNING, "feature id %d not found? (sync error?)", id); + debug(LOG_FEATURE, "feature id %d not found (probably already destroyed)", id); return false; }