flake8-logging-format icon indicating copy to clipboard operation
flake8-logging-format copied to clipboard

Should check `.log(level, msg)` calls too

Open andersk opened this issue 1 year ago • 0 comments

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

andersk avatar Feb 04 '23 00:02 andersk