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.
master
Cyp 2010-08-01 22:34:48 +02:00
parent d5b3621844
commit a9d1296e29
2 changed files with 2 additions and 2 deletions

View File

@ -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.
}

View File

@ -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;
}