turbaszek commented on a change in pull request #12308:
URL: https://github.com/apache/airflow/pull/12308#discussion_r523282317



##########
File path: airflow/plugins_manager.py
##########
@@ -273,6 +276,12 @@ def ensure_plugins_loaded():
     for plugin in plugins:
         registered_hooks.extend(plugin.hooks)
 
+    end = time.monotonic()
+
+    num_loaded = len(plugins)
+    if num_loaded > 0:
+        log.info("Loading %d plugin(s) took %.2f seconds", num_loaded, end - 
start)

Review comment:
       ```suggestion
       if plugins:
           log.info("Loading %d plugin(s) took %.2f seconds", len(plugins), end 
- start)
   ```
   WDYT?




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to