diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-08-07 16:38:12 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-08-07 16:38:12 (GMT) |
commit | a6fd32baae39a6171ea1d170ba597d667cf357e6 (patch) | |
tree | 35dbc3873deb522858b0b53a6e3db83fe35d2a7f | |
parent | 5883164f22e8b092effaa9185dd5b8379d01e8da (diff) | |
download | fusearchive-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-x | fusearchive.py | 3 |
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, |