senapati484 commented on issue #54962: URL: https://github.com/apache/airflow/issues/54962#issuecomment-7256924969
Proposed solution: The configuration should be applied at the shared logging setup boundary used by every Airflow process, rather than only by the processes that currently initialize the console renderer with `colored_console_log`. The API server and Triggerer should receive the same resolved value as the scheduler, workers, and DAG processor. A focused implementation would be: 1. Trace where the structlog/console renderer is built for the API server and Triggerer. 2. Route those paths through the common logging configuration and use `[logging] colored_console_log` when constructing the renderer. 3. Keep the current default unchanged. 4. Add regression tests that initialize each affected process logger with the option set to `False` and assert that emitted stdout contains no ANSI color sequences; also retain a test that `True` preserves the existing behavior. The important part is testing process-specific logger initialization, since the setting already works for some processes and the regression is in the remaining startup paths. -- 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]
