Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpettit committed Mar 24, 2024
1 parent 6f215d0 commit 1d8a31a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nornir_nautobot/plugins/tasks/dispatcher/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ def generate_config(
jinja_env=jinja_env,
)[0].result
except NornirSubTaskError as exc:
if logger.getEffectiveLevel() == logging.DEBUG:
logger.error("DEBUG ON", extra={"object": obj})
else:
logger.error("DEBUG OFF", extra={"object": obj})
stack_trace = get_stack_trace(exc.result.exception)

error_mapping = {
Expand Down

0 comments on commit 1d8a31a

Please sign in to comment.