From b2e8b961325b9813656aef54880f09f3bce9becf Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Mon, 3 Aug 2009 22:03:06 -0700 Subject: Fix namespace problem 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', -- cgit v0.10.2