---
source: crates/ruff_linter/src/rules/flake8_logging/mod.rs
---
LOG004 [*] `.exception()` call outside exception handlers
 --> LOG004_1.py:4:1
  |
4 | logger.exception("")
  | ^^^^^^^^^^^^^^^^^^^^
  |
help: Replace with `.error()`
  |
3 |
  - logger.exception("")
4 + logger.error("")
  |
note: This is an unsafe fix and may change runtime behavior
