* Streaming: Change some log errors to warnings (tickets 76, 341 and others)

This commit is contained in:
zzz
2010-11-30 15:04:18 +00:00
parent 59b53eb6f5
commit 9147fddb8e
2 changed files with 6 additions and 6 deletions

View File

@@ -36,8 +36,8 @@ class ConnectionPacketHandler {
boolean ok = verifyPacket(packet, con);
if (!ok) {
boolean isTooFast = con.getSendStreamId() <= 0;
if ( (!packet.isFlagSet(Packet.FLAG_RESET)) && (!isTooFast) && (_log.shouldLog(Log.ERROR)) )
_log.error("Packet does NOT verify: " + packet + " on " + con);
if ( (!packet.isFlagSet(Packet.FLAG_RESET)) && (!isTooFast) && (_log.shouldLog(Log.WARN)) )
_log.warn("Packet does NOT verify: " + packet + " on " + con);
packet.releasePayload();
return;
}
@@ -450,8 +450,8 @@ class ConnectionPacketHandler {
}
} else {
if (con.getSendStreamId() != packet.getReceiveStreamId()) {
if (_log.shouldLog(Log.ERROR))
_log.error("Packet received with the wrong reply stream id: "
if (_log.shouldLog(Log.WARN))
_log.warn("Packet received with the wrong reply stream id: "
+ con + " / " + packet);
return false;
} else {

View File

@@ -177,8 +177,8 @@ class PacketHandler {
} else if (oldId == packet.getReceiveStreamId()) {
// ok, as expected...
} else {
if (_log.shouldLog(Log.ERROR))
_log.error("Received a syn with the wrong IDs, con=" + con + " packet=" + packet);
if (_log.shouldLog(Log.WARN))
_log.warn("Received a syn with the wrong IDs, con=" + con + " packet=" + packet);
sendReset(packet);
packet.releasePayload();
return;