aboutsummaryrefslogtreecommitdiffstats
path: root/fusearchive.py
diff options
context:
space:
mode:
Diffstat (limited to 'fusearchive.py')
-rwxr-xr-xfusearchive.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fusearchive.py b/fusearchive.py
index 696c666..4df4116 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -44,6 +44,10 @@ def main():
# If debug is in the assembed opts then enable our debug too
if server.fuse_args.assemble()[ -1 ].find( 'debug' ) != -1:
log_level = logging.DEBUG
+ else:
+ # Null-out the logging.debug statement, otherwise it's a top-3 cpu
+ # eater in stat profiling
+ logging.debug = lambda x: 1
logging.basicConfig( level = log_level,
format = '%(asctime)s %(levelname)s %(filename)s:%(lineno)d %(module)s:%(funcName)s() %(message)s',