Fixes: 1) Improve error logging for vendor integration failures by including the integration path.

Extra: 1) Reformat logger.warning message for better readability.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-12-01 11:29:48 +03:00
parent fabb3b5866
commit 5db4c3be37

View file

@ -19,6 +19,8 @@ def get_vendors_integrations(name: str | None = None) -> list[AbstractVendor]:
module_name, class_name = vendor.integration_path.rsplit(".", 1) # type: ignore [union-attr] module_name, class_name = vendor.integration_path.rsplit(".", 1) # type: ignore [union-attr]
vendors_integrations.append(create_object(module_name, class_name)) vendors_integrations.append(create_object(module_name, class_name))
except Exception as e: except Exception as e:
logger.warning("Couldn't load integration for vendor %s: %s", vendor.name, e) logger.warning(
"Couldn't load integration %s for vendor %s: %s", vendor.integration_path, vendor.name, str(e)
)
return vendors_integrations return vendors_integrations