summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-08-27 10:26:12 -0400
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-08-27 10:26:12 -0400
commit6e1133f5c6a3769a8303a3dcabcee20aaf40426e (patch)
tree28b420d32208dcc65af2825c4f3fdfbcebf5e5ff
parent1a7f1f42d192beeb2056c0ca14d363255c491e14 (diff)
combox.events: added print statements in NodeDirMonitor.events for debugging.
-rw-r--r--combox/events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/combox/events.py b/combox/events.py
index 49d1b1a..ff27651 100644
--- a/combox/events.py
+++ b/combox/events.py
@@ -337,6 +337,7 @@ class NodeDirMonitor(LoggingEventHandler):
silo_node_dict = 'file_deleted'
with self.lock:
# [1]: Store the assumption in silo.
+ print "Assuming %s (%s) is deleted" % (cb_filename, event.src_path)
self.silo.node_set(silo_node_dict, cb_filename)
num = self.silo.node_get(silo_node_dict, cb_filename)
if num == self.num_nodes:
@@ -359,6 +360,8 @@ class NodeDirMonitor(LoggingEventHandler):
# the silo.
cb_filename = dest_cb_path
with self.lock:
+ print "Okay, %s (%s) was actually modified." % (cb_filename,
+ event.dest_path)
self.silo.node_rem('file_deleted', cb_filename)
# Next watchdog detects that the shard was modified
# and generates calls the on_modified method. So we