Skip to content

ngclient: Use %-style formatting in logging #1400

@jku

Description

@jku

(this is about code currently in experimental-client/ngclient branch, hopefully soon in develop)

We currently have some f-strings in logging:

                        msg = (
                            f"Adding child role {child_role_name}.\n",
                            "Not backtracking to other roles.",
                        )
                        logger.debug(msg)

Let's use %-style instead in logging (even if f-strings are great for other string formatting, see the google python style guide)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions