Repository navigation
fix: improve plugin loading log messages to distinguish empty folder from errors - #62819
turanalmammadov wants to merge 1 commit into
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
Previously, when no plugins were present in the plugins folder, the loading summary log was identical to a successful load. This made it hard to distinguish between an empty plugin directory and errors. Changes: - When import_errors exist: emit a WARNING listing all failing plugin paths so operators can quickly see what broke - When no plugins and no errors: emit a clear DEBUG message indicating the plugins folder is empty / contains no Airflow plugins - When plugins are loaded successfully: keep the existing debug timing message Closes apache#56816 Made-with: Cursor
e22cb35 to
0755c27
Compare
|
@turanalmammadov This PR has had no activity for 5 weeks. Converting to draft to signal that maintainer review is paused until you resume work. When you're ready to continue, please rebase onto the current Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
|
@turanalmammadov This draft PR has had no activity for 2 weeks. Closing to keep the queue clean. You are welcome to reopen and continue when you're ready. If you'd like to pick it back up, please rebase onto the current Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
Motivation
Closes #56816
The current logging in
plugins_manager.pyhas one generic timing debug message regardless of whether:This makes it hard for operators and developers to quickly understand the plugin loading state.
Changes
Updated
_get_plugins()inairflow-core/src/airflow/plugins_manager.py:Before:
After:
Why this approach
WARNINGso they are visible in default log configurations and clearly list which plugins failed — making debugging much easier.DEBUGmessage so developers inspecting debug logs can understand why no plugins are active.Testing
The change is straightforward — no new tests needed as the logic is covered by existing plugin loading tests.
Made with Cursor