Skip to content

In the log.exception() call , the format specifier for the first parameter is missing #58294

@rich7420

Description

@rich7420

Apache Airflow version

3.1.2

If "Other Airflow 2/3 version" selected, which one?

No response

What happened?

The format string "% name=%s version=%s lock_file=%s" is missing a format specifier after the first % (should be %s), causing a mismatch between the format string and the number of parameters. Four parameters are provided (msg, bundle_name, version, lock_file_path), but the first % in the format string has no corresponding format specifier.

def _log_exc(self, msg):
log.exception(
"% name=%s version=%s lock_file=%s",
msg,
self.bundle_name,
self.version,
self.lock_file_path,
)

What you think should happen instead?

No response

How to reproduce

def _log_exc(self, msg):
log.exception(
"% name=%s version=%s lock_file=%s",
msg,
self.bundle_name,
self.version,
self.lock_file_path,
)

Operating System

macOS

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions