def setup_logging(self): """ Configure the logging framework. """ if self.config.debug: util.setup_logging(level=logging.DEBUG) util.activate_debug_shell_on_signal() else: util.setup_logging(level=logging.INFO)
def handle_basic_executor_options(options, parser): """Handle the options specified by add_basic_executor_options().""" # setup logging logLevel = logging.INFO if options.debug: logLevel = logging.DEBUG elif options.quiet: logLevel = logging.WARNING util.setup_logging(level=logLevel)