From ff4cf26bba61a57d3e021b130f80bc0d6c02eaac Mon Sep 17 00:00:00 2001 From: Elliot Jordan Date: Tue, 21 Jan 2020 09:39:23 -0800 Subject: [PATCH] Only output traceback if verbosity level > 2 --- Code/autopkglib/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/autopkglib/__init__.py b/Code/autopkglib/__init__.py index f3afbb671..89b1085e6 100755 --- a/Code/autopkglib/__init__.py +++ b/Code/autopkglib/__init__.py @@ -672,7 +672,7 @@ def process(self, recipe): try: self.env = processor.process() except Exception as err: - if self.verbose: + if self.verbose > 2: exc_type, exc_value, exc_traceback = sys.exc_info() traceback.print_exc(file=sys.stdout) traceback.print_tb(exc_traceback, limit=1, file=sys.stdout) @@ -828,7 +828,7 @@ def get_processor(processor_name, verbose=None, recipe=None, env=None): # if we aren't successful, that might be OK, we're # going see if the processor was already imported log_err(f"WARNING: {processor_filename}: {err}") - if verbose: + if verbose > 2: exc_type, exc_value, exc_traceback = sys.exc_info() traceback.print_exc(file=sys.stdout) traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)