change injection errors to warns

This commit is contained in:
zzz
2013-01-27 16:17:29 +00:00
parent 92707efe8a
commit 543870ff02
2 changed files with 4 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ class HopProcessor {
_config.setReceiveFrom(prev);
} else if (!_config.getReceiveFrom().equals(prev)) {
// shouldn't happen now that we have good dup ID detection in BuildHandler
if (_log.shouldLog(Log.ERROR))
_log.error("Attempted mid-tunnel injection from " + prev
if (_log.shouldLog(Log.WARN))
_log.warn("Attempted mid-tunnel injection from " + prev
+ ", expected " + _config.getReceiveFrom());
return false;
}

View File

@@ -48,8 +48,8 @@ class InboundEndpointProcessor {
Hash last = _config.getPeer(_config.getLength()-2);
if (!last.equals(prev)) {
// shouldn't happen now that we have good dup ID detection in BuildHandler
if (_log.shouldLog(Log.ERROR))
_log.error("Attempted IBEP injection from " + prev
if (_log.shouldLog(Log.WARN))
_log.warn("Attempted IBEP injection from " + prev
+ ", expected " + last);
return false;
}