Changeset b66bc39 for router


Ignore:
Timestamp:
Apr 16, 2016 4:14:30 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
696c215
Parents:
df16ce6
Message:

log tweak

Location:
router/java/src/net/i2p/router/client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/client/ClientMessageEventListener.java

    rdf16ce6 rb66bc39  
    408408     * The client asked for a message, so we send it to them. 
    409409     *
     410     * This is only when not in fast receive mode.
     411     * In the default fast receive mode, data is sent in MessageReceivedJob.
    410412     */
    411413    private void handleReceiveBegin(ReceiveMessageBeginMessage message) {
     
    428430            _runner.doSend(msg);
    429431        } catch (I2CPMessageException ime) {
    430             if (_log.shouldLog(Log.WARN))
    431                 _log.warn("Error delivering the payload", ime);
     432            String emsg = "Error sending data to client " + _runner.getDestHash();
     433            if (_log.shouldWarn())
     434                _log.warn(emsg, ime);
     435            else
     436                _log.logAlways(Log.WARN, emsg);
    432437            _runner.removePayload(new MessageId(message.getMessageId()));
    433438        }
  • router/java/src/net/i2p/router/client/MessageReceivedJob.java

    rdf16ce6 rb66bc39  
    6161            }
    6262        } catch (I2CPMessageException ime) {
    63             if (_log.shouldLog(Log.WARN))
    64                 _log.warn("Error writing out the message", ime);
     63            String msg = "Error sending data to client " + _runner.getDestHash();
     64            if (_log.shouldWarn())
     65                _log.warn(msg, ime);
     66            else
     67                _log.logAlways(Log.WARN, msg);
    6568            if (id != null && !_sendDirect)
    6669                _runner.removePayload(id);
Note: See TracChangeset for help on using the changeset viewer.