uranusjr commented on a change in pull request #21074:
URL: https://github.com/apache/airflow/pull/21074#discussion_r792359015
##########
File path: airflow/providers_manager.py
##########
@@ -140,10 +141,21 @@ def _sanity_check(provider_package: str, class_name: str)
-> bool:
return False
try:
import_string(class_name)
+ except AirflowOptionalProviderFeatureException as e:
+ # When the provider class raises
AirflowOptionalProviderFeatureException
+ # this is an expected case when only some classes in provider are
+ # available. We just log debug level here
+ log.debug(
+ "Exception when importing '%s' from '%s' package: %s",
Review comment:
This sounds much too generic to me. Maybe something like _optional
feature [module] from [provider] disabled due to [exception]_ instead.
It may also e worthwhile to add `exc_info=True`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]