log tweak

This commit is contained in:
zzz
2016-02-17 14:17:37 +00:00
parent c385ad8f1d
commit 9f0640ca2d

View File

@ -678,7 +678,8 @@ class BuildHandler implements Runnable {
// but if not, something is seriously wrong here.
if (from == null || _context.routerHash().equals(from)) {
_context.statManager().addRateData("tunnel.rejectHostile", 1);
_log.error("Dropping build request, we are the previous hop: " + req);
if (_log.shouldWarn())
_log.warn("Dropping build request, we are the previous hop: " + req);
return;
}
}