ruff
bccba5d7 - [`flake8-logging`] Implement `LOG007`: `ExceptionWithoutExcInfo` (#7410)

Commit
2 years ago
[`flake8-logging`] Implement `LOG007`: `ExceptionWithoutExcInfo` (#7410) ## Summary This PR implements a new rule for `flake8-logging` plugin that checks for uses of `logging.exception()` with `exc_info` set to `False` or a falsy value. It suggests using `logging.error` in these cases instead. I am unsure about the name. Open to suggestions there, went with the most explicit name I could think of in the meantime. Refer https://github.com/astral-sh/ruff/issues/7248 ## Test Plan Added a new fixture cases and ran `cargo test`
Author
Parents
Loading