diff --git a/changes/337.fixed b/changes/337.fixed new file mode 100644 index 00000000..7d5b7f44 --- /dev/null +++ b/changes/337.fixed @@ -0,0 +1 @@ +Fixed logging call from an invalid path to the correct one. diff --git a/nautobot_device_onboarding/diffsync/models/sync_network_data_models.py b/nautobot_device_onboarding/diffsync/models/sync_network_data_models.py index 1d1f25a6..4d0b9e5c 100644 --- a/nautobot_device_onboarding/diffsync/models/sync_network_data_models.py +++ b/nautobot_device_onboarding/diffsync/models/sync_network_data_models.py @@ -576,7 +576,7 @@ def _get_and_assign_vrf(cls, adapter, attrs, interface, diff_method_type): vrf.validated_save() interface.vrf = vrf except Exception as err: - adapter.logger.error(f"Failed to assign device: [{interface.device}] to vrf: [{vrf}], {err}") + adapter.job.logger.error(f"Failed to assign device: [{interface.device}] to vrf: [{vrf}], {err}") if diff_method_type == "create": raise diffsync_exceptions.ObjectNotCreated(err) if diff_method_type == "update":