---
source: crates/ruff_linter/src/rules/flake8_logging/mod.rs
snapshot_kind: text
---
LOG009.py:4:5: LOG009 [*] Use of undocumented `logging.WARN` constant
  |
2 |     import logging
3 | 
4 |     logging.WARN  # LOG009
  |     ^^^^^^^^^^^^ LOG009
5 |     logging.WARNING  # OK
  |
  = help: Replace `logging.WARN` with `logging.WARNING`

ℹ Safe fix
1 1 | def func():
2 2 |     import logging
3 3 | 
4   |-    logging.WARN  # LOG009
  4 |+    logging.WARNING  # LOG009
5 5 |     logging.WARNING  # OK
6 6 | 
7 7 | 

LOG009.py:11:5: LOG009 [*] Use of undocumented `logging.WARN` constant
   |
 9 |     from logging import WARN, WARNING
10 | 
11 |     WARN  # LOG009
   |     ^^^^ LOG009
12 |     WARNING  # OK
   |
   = help: Replace `logging.WARN` with `logging.WARNING`

ℹ Safe fix
8  8  | def func():
9  9  |     from logging import WARN, WARNING
10 10 | 
11    |-    WARN  # LOG009
   11 |+    WARNING  # LOG009
12 12 |     WARNING  # OK
