Changeset ff42027


Ignore:
Timestamp:
Sep 18, 2015 8:08:40 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
83791b2
Parents:
1a385b6d
Message:

only log once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    r1a385b6d rff42027  
    8787    private int _mtu;
    8888    private int _mtu_ipv6;
     89    private boolean _mismatchLogged;
    8990
    9091    /**
     
    12301231        }
    12311232
    1232         if (_log.shouldLog(Log.WARN) && _peersByIdent.size() != _peersByRemoteHost.size())
     1233        if (_log.shouldLog(Log.WARN) && !_mismatchLogged && _peersByIdent.size() != _peersByRemoteHost.size()) {
     1234            _mismatchLogged = true;
    12331235            _log.warn("Size Mismatch after add: " + peer
    12341236                       + " byIDsz = " + _peersByIdent.size()
    12351237                       + " byHostsz = " + _peersByRemoteHost.size());
     1238        }
    12361239       
    12371240        _activeThrottle.unchoke(peer.getRemotePeer());
Note: See TracChangeset for help on using the changeset viewer.