logging
This commit is contained in:
@ -564,12 +564,15 @@ public class OutboundMessageFragments {
|
||||
|
||||
if (state != null) {
|
||||
int numSends = state.getMaxSends();
|
||||
if (state.getMessage() != null)
|
||||
state.getMessage().timestamp("acked after " + numSends
|
||||
+ " lastReceived: "
|
||||
+ (_context.clock().now() - state.getPeer().getLastReceiveTime())
|
||||
+ " lastSentFully: "
|
||||
+ (_context.clock().now() - state.getPeer().getLastSendFullyTime()));
|
||||
if (state.getMessage() != null) {
|
||||
PeerState peer = state.getPeer();
|
||||
if (peer != null)
|
||||
state.getMessage().timestamp("acked after " + numSends
|
||||
+ " lastReceived: "
|
||||
+ (_context.clock().now() - peer.getLastReceiveTime())
|
||||
+ " lastSentFully: "
|
||||
+ (_context.clock().now() - peer.getLastSendFullyTime()));
|
||||
}
|
||||
|
||||
|
||||
if (_log.shouldLog(Log.INFO))
|
||||
|
@ -311,8 +311,8 @@ class PeerTestManager {
|
||||
(from.getPort() == state.getCharliePort()) ) {
|
||||
receiveFromCharlieAsBob(from, state);
|
||||
} else {
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
_log.error("Received from a fourth party as bob! alice: " + state.getAliceIP() + ", charlie: " + state.getCharlieIP() + ", dave: " + from);
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Received from a fourth party as bob! alice: " + state.getAliceIP() + ", charlie: " + state.getCharlieIP() + ", dave: " + from);
|
||||
}
|
||||
} else if (state.getOurRole() == PeerTestState.CHARLIE) {
|
||||
if ( (testIP == null) || (testPort <= 0) ) {
|
||||
|
Reference in New Issue
Block a user