BUG 2676 : Add more context to the Initiate snapshot capture log message 46/15546/2
authorMoiz Raja <moraja@cisco.com>
Fri, 20 Feb 2015 11:57:36 +0000 (03:57 -0800)
committerMoiz Raja <moraja@cisco.com>
Fri, 20 Feb 2015 18:09:48 +0000 (10:09 -0800)
Add more context in the Initiate snapshot capture log message so that when
a snapshot capture occurs due to lack of memory we can get a little more
detail from the logs.

Change-Id: I85647adcf74d7eb36f767ba5dd6824e64a802811
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java

index 854ceb23d047fabea219f3861c5f44c0f2afc907..65254f2d6277c34c9773570e5938d8a005ab3015 100644 (file)
@@ -788,7 +788,9 @@ public abstract class RaftActor extends AbstractUntypedPersistentActor {
 
                             dataSizeSinceLastSnapshot = 0;
 
-                            LOG.info("{}: Initiating Snapshot Capture..", persistenceId());
+                            LOG.info("{}: Initiating Snapshot Capture, journalSize = {}, dataSizeForCheck = {}," +
+                                " dataThreshold = {}", persistenceId(), journalSize, dataSizeForCheck, dataThreshold);
+
                             long lastAppliedIndex = -1;
                             long lastAppliedTerm = -1;