Change a common wtf error to a warn

This commit is contained in:
zzz
2008-03-06 14:03:49 +00:00
parent 9233c2ed4c
commit d957712e88

View File

@@ -532,7 +532,8 @@ public class TunnelDispatcher implements Service {
long dispatchTime = _context.clock().now() - before;
if (dispatchTime > 1000) {
_log.error("wtf, took " + dispatchTime + " to dispatch " + msg + " out " + outboundTunnel + " in " + gw);
if (_log.shouldLog(Log.WARN))
_log.warn("wtf, took " + dispatchTime + " to dispatch " + msg + " out " + outboundTunnel + " in " + gw);
}
if (gw instanceof TunnelGatewayZeroHop)
_context.statManager().addRateData("tunnel.dispatchOutboundZeroHopTime", dispatchTime, dispatchTime);