potiuk commented on a change in pull request #21074:
URL: https://github.com/apache/airflow/pull/21074#discussion_r792977636



##########
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:
       I was also thinking if not to make it INFO level, but it will continue 
flooding the log. I wish we had "log once per app run" working acrross multiple 
processes and gunicorn restarts as well.  




-- 
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]


Reply via email to