Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test
Browse files Browse the repository at this point in the history
jmpettit committed Mar 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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 = {

0 comments on commit 1d8a31a

Please sign in to comment.