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

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


