diff --git a/nornir_nautobot/plugins/tasks/dispatcher/default.py b/nornir_nautobot/plugins/tasks/dispatcher/default.py index 436aa4b..b802d29 100644 --- a/nornir_nautobot/plugins/tasks/dispatcher/default.py +++ b/nornir_nautobot/plugins/tasks/dispatcher/default.py @@ -175,6 +175,10 @@ def generate_config( jinja_env=jinja_env, )[0].result except NornirSubTaskError as exc: + if logger.getEffectiveLevel() == logging.DEBUG: + print("Debugging is on") + else: + print("Debugging is off") stack_trace = get_stack_trace(exc.result.exception) error_mapping = {