Skip to content

Should check .log(level, msg) calls too #69

@andersk

Description

@andersk
import logging
logger = logging.getLogger("test")
a, b = "a", "b"
logger.error(f"{a} {b}")  # raises G004 Logging statement uses f-string
logger.log(logging.ERROR, f"{a} {b}")  # should raise G004, but doesn’t

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