log tweak thx ech
This commit is contained in:
@ -127,8 +127,8 @@ class BuildRequestor {
|
|||||||
TunnelBuildMessage msg = createTunnelBuildMessage(ctx, pool, cfg, pairedTunnel, exec);
|
TunnelBuildMessage msg = createTunnelBuildMessage(ctx, pool, cfg, pairedTunnel, exec);
|
||||||
long createTime = System.currentTimeMillis()-beforeCreate;
|
long createTime = System.currentTimeMillis()-beforeCreate;
|
||||||
if (msg == null) {
|
if (msg == null) {
|
||||||
if (log.shouldLog(Log.ERROR))
|
if (log.shouldLog(Log.WARN))
|
||||||
log.error("Tunnel build failed, as we couldn't create the tunnel build message for " + cfg);
|
log.warn("Tunnel build failed, as we couldn't create the tunnel build message for " + cfg);
|
||||||
exec.buildComplete(cfg, pool);
|
exec.buildComplete(cfg, pool);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -202,6 +202,7 @@ class BuildRequestor {
|
|||||||
* If the tunnel is short enough, and everybody in the tunnel, and the
|
* If the tunnel is short enough, and everybody in the tunnel, and the
|
||||||
* OBEP or IBGW for the paired tunnel, all support the new variable-sized tunnel build message,
|
* OBEP or IBGW for the paired tunnel, all support the new variable-sized tunnel build message,
|
||||||
* then use that, otherwise the old 8-entry version.
|
* then use that, otherwise the old 8-entry version.
|
||||||
|
* @return null on error
|
||||||
*/
|
*/
|
||||||
private static TunnelBuildMessage createTunnelBuildMessage(RouterContext ctx, TunnelPool pool, PooledTunnelCreatorConfig cfg, TunnelInfo pairedTunnel, BuildExecutor exec) {
|
private static TunnelBuildMessage createTunnelBuildMessage(RouterContext ctx, TunnelPool pool, PooledTunnelCreatorConfig cfg, TunnelInfo pairedTunnel, BuildExecutor exec) {
|
||||||
Log log = ctx.logManager().getLog(BuildRequestor.class);
|
Log log = ctx.logManager().getLog(BuildRequestor.class);
|
||||||
@ -275,8 +276,8 @@ class BuildRequestor {
|
|||||||
Hash peer = cfg.getPeer(hop);
|
Hash peer = cfg.getPeer(hop);
|
||||||
RouterInfo peerInfo = ctx.netDb().lookupRouterInfoLocally(peer);
|
RouterInfo peerInfo = ctx.netDb().lookupRouterInfoLocally(peer);
|
||||||
if (peerInfo == null) {
|
if (peerInfo == null) {
|
||||||
if (log.shouldLog(Log.ERROR))
|
if (log.shouldLog(Log.WARN))
|
||||||
log.error("Peer selected for hop " + i + "/" + hop + " was not found locally: "
|
log.warn("Peer selected for hop " + i + "/" + hop + " was not found locally: "
|
||||||
+ peer.toBase64() + " for " + cfg);
|
+ peer.toBase64() + " for " + cfg);
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user