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

View File

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