Skip to content

Stop using the logger.error("{}", str(exc)) idiom #3099

Open
@portante

Description

@portante

When we have a simple string to log, why not just log it?

For example, instead of self.logger.error("{}", str(exc)), just use self.logger.error(str(exc))?

Originally posted by @portante in #3091 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions