Skip to content

Commit

Permalink
Merge pull request #131 from housepbass/update_nornir_logging
Browse files Browse the repository at this point in the history
Update nornir logging
  • Loading branch information
jvanderaa committed Nov 8, 2023
2 parents 986b003 + cd314c4 commit a89fac5
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 @@ -415,6 +415,10 @@ def merge_config(
f"result: {push_result[0].result}, changed: {push_result.changed}",
extra={"object": obj},
)

if push_result.diff:
logger.info(f"Diff:\n```\n_{push_result.diff}\n```", extra={"object": obj})

logger.info("Config merge ended", extra={"object": obj})
return Result(
host=task.host,
Expand Down

0 comments on commit a89fac5

Please sign in to comment.