You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one is straightforward. The if args.verbose: celery_log_level = "DEBUG" sits right after the CELERY_LOGGING_LEVEL/LOGGING_LEVEL resolution in worker() and before celery_log_level gets dropped into the --loglevel slot of options, so -v actually rides through to celery_app.worker_main now. args.verbose is the shared ARG_VERBOSE store_true wired into the worker command in definition.py, so it is always set and forcing DEBUG only ever raises verbosity, never lowers a configured level. The added test asserts the exact --loglevel DEBUG slot. Only stray thought is whether the generic -v help text ("Make logging output more verbose") makes this discoverable for the celery worker case, but that is non blocking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes
airflow celery worker -vso the Celery worker receives--loglevel DEBUGinstead of only updating Airflow's root logger.closes: #46990
Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5) following the guidelines