---
source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs
---
G202 Logging statement has redundant `exc_info`
  --> G202.py:8:38
   |
 6 |     pass
 7 | except:
 8 |     logging.exception("Hello World", exc_info=True)
   |                                      ^^^^^^^^^^^^^
 9 |
10 | try:
   |

G202 Logging statement has redundant `exc_info`
  --> G202.py:13:38
   |
11 |     pass
12 | except:
13 |     logging.exception("Hello World", exc_info=sys.exc_info())
   |                                      ^^^^^^^^^^^^^^^^^^^^^^^
14 |
15 | # OK
   |

G202 Logging statement has redundant `exc_info`
  --> G202.py:28:30
   |
26 |     pass
27 | except:
28 |     exception("Hello World", exc_info=True)
   |                              ^^^^^^^^^^^^^
29 |
30 | try:
   |

G202 Logging statement has redundant `exc_info`
  --> G202.py:33:30
   |
31 |     pass
32 | except:
33 |     exception("Hello World", exc_info=sys.exc_info())
   |                              ^^^^^^^^^^^^^^^^^^^^^^^
34 |
35 | # OK
   |
