combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit 6e1133f5c6a3769a8303a3dcabcee20aaf40426e
parent 1a7f1f42d192beeb2056c0ca14d363255c491e14
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Thu, 27 Aug 2015 10:26:12 -0400

combox.events: added print statements in NodeDirMonitor.events for debugging.

Diffstat:
combox/events.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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