aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-07 16:38:12 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-07 16:38:12 (GMT)
commita6fd32baae39a6171ea1d170ba597d667cf357e6 (patch)
tree35dbc3873deb522858b0b53a6e3db83fe35d2a7f
parent5883164f22e8b092effaa9185dd5b8379d01e8da (diff)
downloadfusearchive-a6fd32baae39a6171ea1d170ba597d667cf357e6.zip
fusearchive-a6fd32baae39a6171ea1d170ba597d667cf357e6.tar.gz
fusearchive-a6fd32baae39a6171ea1d170ba597d667cf357e6.tar.bz2
Changed the way we look for the debug flag and actually turn the flag on
ONLY when we see debug enabled
-rwxr-xr-xfusearchive.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/fusearchive.py b/fusearchive.py
index ab13f0d..04e2b16 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -47,8 +47,7 @@ if server.parser.largs == None or len(server.parser.largs) != 2:
log_level = logging.WARNING
# If debug is in the assembed opts then enable our debug too
-print server.fuse_args.assemble()
-if ' '.join( server.fuse_args.assemble() ).find( 'debug' ):
+if server.fuse_args.assemble()[ -1 ].find( 'debug' ) != -1:
log_level = logging.DEBUG
logging.basicConfig( level = log_level,