Changeset 18b8ddc


Ignore:
Timestamp:
Dec 17, 2011 2:04:57 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b18e7c7
Parents:
4884148
Message:

misc. log tweaks

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/SimpleTimer2.java

    r4884148 r18b8ddc  
    236236                _log.warn(_pool + " wtf, early execution " + delay + ": " + this);
    237237            else if (_log.shouldLog(Log.WARN) && delay < -1000)
    238                 _log.warn(" wtf, late execution " + delay + ": " + this + _pool.debug());
     238                _log.warn(" wtf, late execution " + (0 - delay) + ": " + this + _pool.debug());
    239239            try {
    240240                timeReached();
  • history.txt

    r4884148 r18b8ddc  
     12011-12-17 zzz
     2  * i2psnark:
     3    - Replace file name characters not supported in default charset
     4    - Add torrent file name to local details page
     5  * GeoIP: Reduce thread priority during lookup
     6  * ProfileManager: Make some methods non-blocking to reduce
     7                    lock contention in transports
     8
    192011-12-15 kytv
    210  * Swedish translation updates from Transifex
  • router/java/src/net/i2p/router/InNetMessagePool.java

    r4884148 r18b8ddc  
    147147            //    level = Log.INFO;
    148148            if (_log.shouldLog(level))
    149                 _log.log(level, "Duplicate message received [" + messageBody.getUniqueId()
    150                           + " expiring on " + exp + "]: " + messageBody.getClass().getName() + ": " + invalidReason
     149                _log.log(level, "Dropping message [" + messageBody.getUniqueId()
     150                          + " expiring on " + exp + "]: " + messageBody.getClass().getSimpleName() + ": " + invalidReason
    151151                          + ": " + messageBody);
    152152            _context.statManager().addRateData("inNetPool.dropped", 1, 0);
     153            // FIXME not necessarily a duplicate, could be expired too long ago / too far in future
    153154            _context.statManager().addRateData("inNetPool.duplicate", 1, 0);
    154155            _context.messageHistory().droppedOtherMessage(messageBody, (fromRouter != null ? fromRouter.calculateHash() : fromRouterHash));
    155156            _context.messageHistory().messageProcessingError(messageBody.getUniqueId(),
    156                                                                 messageBody.getClass().getName(),
     157                                                                messageBody.getClass().getSimpleName(),
    157158                                                                "Duplicate/expired");
    158159            return -1;
  • router/java/src/net/i2p/router/RouterVersion.java

    r4884148 r18b8ddc  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 21;
     21    public final static long BUILD = 22;
    2222
    2323    /** for example "-test" */
    24     public final static String EXTRA = "";
     24    public final static String EXTRA = "-rc";
    2525    public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
    2626    public static void main(String args[]) {
  • router/java/src/net/i2p/router/message/GarlicMessageReceiver.java

    r4884148 r18b8ddc  
    113113                           + " expiration " + howLongAgo + " ago: " + invalidReason + ": " + clove);
    114114            _context.messageHistory().messageProcessingError(clove.getCloveId(),
    115                                                              clove.getData().getClass().getName(),
     115                                                             clove.getData().getClass().getSimpleName(),
    116116                                                             "Clove is not valid (expiration " + howLongAgo + " ago)");
    117117        }
  • router/java/src/net/i2p/router/tunnel/HopProcessor.java

    r4884148 r18b8ddc  
    1313 * inbound and outbound participants, outbound endpoints,
    1414 * and inbound gateways (with a small modification per
    15  * InbuondGatewayProcessor). 
     15 * InboundGatewayProcessor). 
    1616 *
    1717 */
     
    7878        if (!okIV) {
    7979            if (_log.shouldLog(Log.WARN))
    80                 _log.warn("Invalid IV received on tunnel " + _config.getReceiveTunnel());
     80                _log.warn("Invalid IV, dropping at hop " + _config);
    8181            return false;
    8282        }
     
    112112        _context.aes().encryptBlock(orig, offset, _config.getIVKey(), orig, offset);
    113113    }
     114
     115    /**
     116     *  @since 0.8.12
     117     */
     118    @Override
     119    public String toString() {
     120        return getClass().getSimpleName() + " for " + _config;
     121    }
    114122}
  • router/java/src/net/i2p/router/tunnel/InboundEndpointProcessor.java

    r4884148 r18b8ddc  
    6464        if (!ok) {
    6565            if (_log.shouldLog(Log.WARN))
    66                 _log.warn("Invalid IV received");
     66                _log.warn("Invalid IV, dropping at IBEP " + _config);
    6767            _cache.release(ba);
    6868            return false;
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPool.java

    r4884148 r18b8ddc  
    8181            _inProgress.clear();
    8282        }
    83         if (_log.shouldLog(Log.WARN))
    84             _log.warn(toString() + ": Startup() called, was already alive? " + _alive, new Exception());
     83        if (_log.shouldLog(Log.INFO))
     84            _log.info(toString() + ": Startup() called, was already alive? " + _alive, new Exception());
    8585        _alive = true;
    8686        _started = System.currentTimeMillis();
Note: See TracChangeset for help on using the changeset viewer.