Skip to content

Commit

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

error_mapping = {
Expand Down

0 comments on commit 66e0802

Please sign in to comment.