From a6fd32baae39a6171ea1d170ba597d667cf357e6 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Fri, 7 Aug 2009 09:38:12 -0700 Subject: Changed the way we look for the debug flag and actually turn the flag on ONLY when we see debug enabled 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, -- cgit v0.10.2