Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
otrack committed Apr 23, 2019
1 parent dc16790 commit d4c5ac8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ public java.lang.Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyVal
// assert (call instanceof CallConstruct) | (object!=null);

if (log.isTraceEnabled()) {
log.trace(" Received [" + call.toString() + "]");
log.trace(" With ID " + call.getCallID() + "]");
log.trace(" By " + call.getCallerID() + "]");
log.trace(" Object "+object);
// log.trace(" lastCall="+lastCall);
log.trace(" Rcv [" + call.toString() + ", key=" + reference+", call=" + call.getCallID() + ", caller=" + call.getCallerID() + "]");
}

future = new CallResponse(reference ,call);
Expand Down Expand Up @@ -158,7 +154,11 @@ public java.lang.Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyVal
// save state if required
if (hasReadOnlyMethods(reference.getClazz())) { // FIXME state = byte array
synchronized (object) { // synchronization contract
future.setState(unmarshall(marshall(object)));
byte[] buf = marshall(object);
future.setState(unmarshall(buf));
if (log.isTraceEnabled()) {
log.trace(" keeping state "+buf.length+"B");
}
}
}

Expand Down

0 comments on commit d4c5ac8

Please sign in to comment.