diff options
-rw-r--r-- | FuseArchive/ChunkFile.py | 2 | ||||
-rw-r--r-- | FuseArchive/Storage/FileSystem.py | 4 | ||||
-rwxr-xr-x | fusearchive.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/FuseArchive/ChunkFile.py b/FuseArchive/ChunkFile.py index 457fe37..3b04ba8 100644 --- a/FuseArchive/ChunkFile.py +++ b/FuseArchive/ChunkFile.py @@ -245,7 +245,7 @@ class ChunkFile(object): return data def write(self, buf, offset): - if magic_profiling: + if FuseArchive.magic_profiling: return len( buf ) logging.debug( "Writing to %s offset: %d (0x%x) length: %d (0x%x)" % diff --git a/FuseArchive/Storage/FileSystem.py b/FuseArchive/Storage/FileSystem.py index 8488964..bdb6176 100644 --- a/FuseArchive/Storage/FileSystem.py +++ b/FuseArchive/Storage/FileSystem.py @@ -1,7 +1,7 @@ # This will write out a data block, it will return a key that can get this # data back later def save_chunk( chunk ): - if magic_profiling: + if FuseArchive.magic_profiling: return( [ 0, 0 ] ) logging.debug( "Begin save_chunk, length: %d" % len( chunk ) ) @@ -66,7 +66,7 @@ def save_chunk( chunk ): # This will return a data block by key that was saved previously def load_chunk( key ): - if magic_profiling: + if FuseArchive.magic_profiling: return '' ( thash, seq ) = key diff --git a/fusearchive.py b/fusearchive.py index 1d5281b..f18c7c7 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -11,8 +11,8 @@ import logging, sys, os, fuse import FuseArchive -#log_level = logging.DEBUG -log_level = logging.WARNING +log_level = logging.DEBUG +#log_level = logging.WARNING logging.basicConfig( level = log_level, format = '%(asctime)s %(levelname)s %(filename)s:%(lineno)d %(module)s:%(funcName)s() %(message)s', |