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:
parent
fabb3b5866
commit
5db4c3be37
1 changed files with 3 additions and 1 deletions
|
|
@ -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]
|
||||
vendors_integrations.append(create_object(module_name, class_name))
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue