This patch improves logging so we can turn up stack traces
if we ever uncounter lastApplied change shifts.
Change-Id: I4391c0580171a0edc9c93cb41aa56b3eb9cbb521
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
public void setLastApplied(long lastApplied) {
@Override
public void setLastApplied(long lastApplied) {
- log.debug("{}: Moving last applied index from {} to {}", id, this.lastApplied, lastApplied);
+ final Throwable stackTrace = log.isTraceEnabled() ? new Throwable() : null;
+ log.debug("{}: Moving last applied index from {} to {}", id, this.lastApplied, lastApplied, stackTrace);
this.lastApplied = lastApplied;
}
this.lastApplied = lastApplied;
}
- @Override public ActorSystem getActorSystem() {
+ @Override
+ public ActorSystem getActorSystem() {
return context.system();
}
return context.system();
}
- @Override public Logger getLogger() {
+ @Override
+ public Logger getLogger() {