X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=grml2usb;h=6cb76c007600f6b9f818b0d0adfc13f0751feb6f;hb=cdb4aa447297942b280ff7e91dd135c397a43db7;hp=0c9ffc09a9f0125b16797b8ba2415f01c2ef74fa;hpb=5276a2374013612a6ead6e9b1f18ea4f84105cec;p=grml2usb.git diff --git a/grml2usb b/grml2usb index 0c9ffc0..6cb76c0 100755 --- a/grml2usb +++ b/grml2usb @@ -170,7 +170,7 @@ def cleanup(): os.unlink(tmpfile) # ignore: RuntimeError: Set changed size during iteration except RuntimeError: - logging.debug('caught expection RuntimeError, ignoring') + logging.debug('caught exception RuntimeError, ignoring') def register_tmpfile(path): @@ -1645,14 +1645,13 @@ def handle_logging(): if options.verbose and options.quiet: parser.error("please use either verbose (--verbose) or quiet (--quiet) option") + FORMAT = "%(message)s" if options.verbose: - FORMAT = "Debug: %(asctime)-15s %(message)s" + FORMAT = "%(asctime)-15s %(message)s" logging.basicConfig(level=logging.DEBUG, format=FORMAT) elif options.quiet: - FORMAT = "Critical: %(message)s" logging.basicConfig(level=logging.CRITICAL, format=FORMAT) else: - FORMAT = "%(message)s" logging.basicConfig(level=logging.INFO, format=FORMAT)