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,