From 54255b15a612ce4f622a61035e725666b404655a Mon Sep 17 00:00:00 2001 From: Justin Pettit <47164813+jmpettit@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:57:42 -0500 Subject: [PATCH] testing --- nornir_nautobot/plugins/tasks/dispatcher/default.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nornir_nautobot/plugins/tasks/dispatcher/default.py b/nornir_nautobot/plugins/tasks/dispatcher/default.py index 436aa4b..e07ec9c 100644 --- a/nornir_nautobot/plugins/tasks/dispatcher/default.py +++ b/nornir_nautobot/plugins/tasks/dispatcher/default.py @@ -165,6 +165,8 @@ def generate_config( Returns: Result: Nornir Result object. """ + if logger.getEffectiveLevel() == logging.DEBUG: + logger.debug("Job is running in debug mode", extra={"object": obj}) try: filled_template = task.run( **task.host,