The GitHub Actions job "Tests" on airflow.git/fix/issue-62201 has succeeded.
Run started by GitHub user YoannAbriel (triggered by YoannAbriel).

Head commit for run:
ce6dcd1ef9a2d660c8796a0599d93e3e22660e2a / Yoann Abriel <[email protected]>
Fix dict args in structlog positional formatting

When a dict was passed as a positional argument to a log message
(e.g. log.warning('message %s', {'a': 10})), both the structlog
bound logger and the stdlib logging path would try named substitution
first, causing TypeError for positional format specifiers like %s.

Fix both paths to match CPython's stdlib logging behavior: try
positional formatting (msg % args) first, fall back to named
substitution (msg % args[0]) only on TypeError/KeyError.

- In _make_airflow_structlogger.meth(): try event % args first,
  fall back to named substitution on failure
- Add positional_arguments_formatter() to replace structlog's built-in
  PositionalArgumentsFormatter, which has the same ordering bug for
  stdlib logging records

Fixes apache/airflow#62201

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/22720393052

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to