aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-07-23 17:12:42 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-07-23 17:12:42 (GMT)
commitcc3db1d4155cea84ddc86092fe65fdbce3d209ba (patch)
tree0893874ede367cfbb18da56dd0a59a6cf8114152
parentf6e9327675f3a92356ab4eda9e4d1f829113d312 (diff)
downloadfusearchive-cc3db1d4155cea84ddc86092fe65fdbce3d209ba.zip
fusearchive-cc3db1d4155cea84ddc86092fe65fdbce3d209ba.tar.gz
fusearchive-cc3db1d4155cea84ddc86092fe65fdbce3d209ba.tar.bz2
More debug message tweaks
-rwxr-xr-xfusearchive.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/fusearchive.py b/fusearchive.py
index 98e5169..f728640 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -49,12 +49,12 @@ def inflate( src, dest ):
out = open( dest, "w" )
- dmsg( 2, "Unpickling: " + src )
+ dmsg( 3, "Unpickling: " + src )
# TODO: return an IO error if inflating fails
inp = gzip.open( src, "r" )
magic = pickle.load( inp )
inp.close()
- dmsg( 2, "Got data: " + str( magic ) )
+ dmsg( 3, "Got data: " + str( magic ) )
#pdb.set_trace()
@@ -331,16 +331,16 @@ class FuseArchive(Fuse):
deflate( "/dev/null", "./tree" + path )
dmsg( 2, "Shadow file: " + self.tmp_name + " for " + self.orig_path )
- dmsg( 2, "Going to open shadow file with flags: " + str(flags) + " mode " + str(mode) )
+ dmsg( 3, "Going to open shadow file with flags: " + str(flags) + " mode " + str(mode) )
# pdb.set_trace()
- dmsg( 2, "Flag2mode is: " + str( flag2mode( flags ) ) )
+ dmsg( 3, "Flag2mode is: " + str( flag2mode( flags ) ) )
# Just use the fdnum they gave us instead of reopening it,
# since that might fail
# fdnum = os.open( self.tmp_name, flags, *mode )
#print "Got fdnum: " + str(fdnum)
self.file = os.fdopen( fdnum, flag2mode( flags ) )
- dmsg( 2, "Open" )
+ dmsg( 3, "Open" )
self.fd = self.file.fileno()
@@ -349,7 +349,7 @@ class FuseArchive(Fuse):
self.modified = False
- dmsg( 2, str(self) + " init complete" )
+ dmsg( 3, str(self) + " init complete" )
def read(self, length, offset):
dmsg( 2, "Reading from " + self.orig_path )