Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge changes I34538a22,I520b0d83
[controller.git]
/
opendaylight
/
md-sal
/
sal-clustering-commons
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
common
/
actor
/
AbstractUntypedPersistentActor.java
diff --git
a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/common/actor/AbstractUntypedPersistentActor.java
b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/common/actor/AbstractUntypedPersistentActor.java
index 36b2866210cadb84d9db0ab28c5a8137236254a7..326733f377e21d62fcf4865a0eeab10ad14e7ad6 100644
(file)
--- a/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/common/actor/AbstractUntypedPersistentActor.java
+++ b/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/common/actor/AbstractUntypedPersistentActor.java
@@
-8,18
+8,17
@@
package org.opendaylight.controller.cluster.common.actor;
package org.opendaylight.controller.cluster.common.actor;
-import akka.event.Logging;
-import akka.event.LoggingAdapter;
import akka.persistence.UntypedPersistentActor;
import akka.persistence.UntypedPersistentActor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public abstract class AbstractUntypedPersistentActor extends UntypedPersistentActor {
public abstract class AbstractUntypedPersistentActor extends UntypedPersistentActor {
- protected final LoggingAdapter LOG =
- Logging.getLogger(getContext().system(), this);
+ protected final Logger LOG = LoggerFactory.getLogger(getClass());
public AbstractUntypedPersistentActor() {
public AbstractUntypedPersistentActor() {
- if(LOG.is
Debug
Enabled()) {
- LOG.
debug
("Actor created {}", getSelf());
+ if(LOG.is
Trace
Enabled()) {
+ LOG.
trace
("Actor created {}", getSelf());
}
getContext().
system().
}
getContext().
system().
@@
-31,24
+30,24
@@
public abstract class AbstractUntypedPersistentActor extends UntypedPersistentAc
@Override public void onReceiveCommand(Object message) throws Exception {
final String messageType = message.getClass().getSimpleName();
@Override public void onReceiveCommand(Object message) throws Exception {
final String messageType = message.getClass().getSimpleName();
- if(LOG.is
Debug
Enabled()) {
- LOG.
debug
("Received message {}", messageType);
+ if(LOG.is
Trace
Enabled()) {
+ LOG.
trace
("Received message {}", messageType);
}
handleCommand(message);
}
handleCommand(message);
- if(LOG.is
Debug
Enabled()) {
- LOG.
debug
("Done handling message {}", messageType);
+ if(LOG.is
Trace
Enabled()) {
+ LOG.
trace
("Done handling message {}", messageType);
}
}
@Override public void onReceiveRecover(Object message) throws Exception {
final String messageType = message.getClass().getSimpleName();
}
}
@Override public void onReceiveRecover(Object message) throws Exception {
final String messageType = message.getClass().getSimpleName();
- if(LOG.is
Debug
Enabled()) {
- LOG.
debug
("Received message {}", messageType);
+ if(LOG.is
Trace
Enabled()) {
+ LOG.
trace
("Received message {}", messageType);
}
handleRecover(message);
}
handleRecover(message);
- if(LOG.is
Debug
Enabled()) {
- LOG.
debug
("Done handling message {}", messageType);
+ if(LOG.is
Trace
Enabled()) {
+ LOG.
trace
("Done handling message {}", messageType);
}
}
}
}