curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [3/4] curator git commit: some logging
Date Tue, 21 Apr 2015 15:31:15 GMT
some logging


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/9ab4668e
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/9ab4668e
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/9ab4668e

Branch: refs/heads/master
Commit: 9ab4668e717ad8268b33ce55807f4c26b1ad1077
Parents: dd03a63
Author: randgalt <randgalt@apache.org>
Authored: Tue Apr 7 18:56:41 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Tue Apr 7 18:56:41 2015 -0500

----------------------------------------------------------------------
 .../org/apache/curator/framework/recipes/locks/ChildReaper.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/9ab4668e/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
index a0a3fd0..2a1d73e 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
@@ -264,6 +264,7 @@ public class ChildReaper implements Closeable
                     }
 
                     List<String> children = client.getChildren().forPath(path);
+                    log.info(String.format("Found %d children for %s", children.size(), path));
                     for ( String name : children )
                     {
                         String childPath = ZKPaths.makePath(path, name);
@@ -288,6 +289,7 @@ public class ChildReaper implements Closeable
         Stat stat = client.checkExists().forPath(path);
         if ( (stat != null) && (stat.getNumChildren() == 0) )
         {
+            log.info("Adding " + path);
             reaper.addPath(path, mode);
         }
     }


Mime
View raw message