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
According to the docs here, https://airflow.apache.org/docs/apache-airflow/stable/cli-and-env-variables-ref.html#api-server, the api-server sub-command should have a name argument of --log-config but when the command field in the docker compose file is set to api-server --log-config=<file_path> the following error is shown airflow command error: unrecognized arguments: --log-config=<file_path>, see help above. I have also tried doing api-server --log-config <file_path> with a similar error message airflow command error: unrecognized arguments: --log-config <file_path>, see help above.
What you think should happen instead?
Preferably the api-server component should be updated to re-include this named argument, with the help message updated, or the docs should be updated to remove this name argument.
How to reproduce
In the provided docker-compose.yaml file, update the airflow-apiserver serivce command to be api-server --log-config <file_path>
Operating System
Debian
Versions of Apache Airflow Providers
No response
Deployment
Other Docker-based deployment
Deployment details
Custom docker image based on official docker image
We won't do much with it. This is because the recent doc refresh (for other reasons) accidentally picked this one #53372 -> which is coming in 3.0.4. Maybe we should remove it manually from generated docs, but that's a little nuance and It looks like 3.0.4 is coming shortly so might not be worth it.
@potiuk Thanks, just making sure I understand, that CLI argument is not something that is planned on being re-added/fixed? If that is the case, how can we change the log format for uvicorn?
OK. i used the new feature of selective patching of released documentation without having to pick all other commits from branch and regenerated 3.0.3 so that it does not contain --log-config any more. It should appear in 3.0.4 - that change is scheduled to appear (and also be effective) in 3.0.4.
You might need to shift-refresh the config page to see the changes if it is still in your cache.
@potiuk I pulled down the 3.04rc1 release and I'm still not seeing the --log-config argument present. When I run airflow api-server --help it's not a listed option, is this not being added in 3.0.4?
Activity
potiuk commentedon Jul 22, 2025
We won't do much with it. This is because the recent doc refresh (for other reasons) accidentally picked this one #53372 -> which is coming in 3.0.4. Maybe we should remove it manually from generated docs, but that's a little nuance and It looks like 3.0.4 is coming shortly so might not be worth it.
jnstockley commentedon Jul 22, 2025
@potiuk Thanks, just making sure I understand, that CLI argument is not something that is planned on being re-added/fixed? If that is the case, how can we change the log format for uvicorn?
potiuk commentedon Jul 22, 2025
Quite the contrary. It is coming in 3.0.4 . See the linked PR
potiuk commentedon Jul 23, 2025
And with #53668 we might have a nice mechanism to fix it in released docs. I will try it after we test it when fixing
hivedocumentation issue we had.3 remaining items
Add possibility to apply a commit with patch to docs when publishing
Add possibility to apply a commit with patch to docs when publishing (#…
Add possibility to apply a commit with patch to docs when publishing (a…
[v3-0-test] Add possibility to apply a commit with patch to docs when…
potiuk commentedon Jul 24, 2025
OK. i used the new feature of selective patching of released documentation without having to pick all other commits from branch and regenerated 3.0.3 so that it does not contain
--log-configany more. It should appear in 3.0.4 - that change is scheduled to appear (and also be effective) in 3.0.4.You might need to shift-refresh the config page to see the changes if it is still in your cache.
jnstockley commentedon Aug 5, 2025
@potiuk I pulled down the 3.04rc1 release and I'm still not seeing the
--log-configargument present. When I runairflow api-server --helpit's not a listed option, is this not being added in 3.0.4?jnstockley commentedon Aug 6, 2025
I did try with 3.04rc2, and ran into the same issue as well
potiuk commentedon Aug 6, 2025
Yep. It looks like it has been decided to not be cherry-picked to 3.0 -> it is scheduled for 3.1.
[v3-0-test] Add possibility to apply a commit with patch to docs when…
Add possibility to apply a commit with patch to docs when publishing …
Add possibility to apply a commit with patch to docs when publishing …
Add possibility to apply a commit with patch to docs when publishing …
Add possibility to apply a commit with patch to docs when publishing …
Add possibility to apply a commit with patch to docs when publishing …