---
source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs
---
G201 Logging `.exception(...)` should be used instead of `.error(..., exc_info=True)`
  --> G201.py:8:13
   |
 6 |     pass
 7 | except:
 8 |     logging.error("Hello World", exc_info=True)
   |             ^^^^^
 9 |
10 | try:
   |

G201 Logging `.exception(...)` should be used instead of `.error(..., exc_info=True)`
  --> G201.py:13:13
   |
11 |     pass
12 | except:
13 |     logging.error("Hello World", exc_info=sys.exc_info())
   |             ^^^^^
14 |
15 | # OK
   |

G201 Logging `.exception(...)` should be used instead of `.error(..., exc_info=True)`
  --> G201.py:28:5
   |
26 |     pass
27 | except:
28 |     error("Hello World", exc_info=True)
   |     ^^^^^
29 |
30 | try:
   |

G201 Logging `.exception(...)` should be used instead of `.error(..., exc_info=True)`
  --> G201.py:33:5
   |
31 |     pass
32 | except:
33 |     error("Hello World", exc_info=sys.exc_info())
   |     ^^^^^
34 |
35 | # OK
   |
