mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:41:23 +00:00
[flake8-logging
] Suggest .getLogger(__name__)
instead of .getLogger(__file__)
(LOG015
) (#14392)
This commit is contained in:
parent
d470f29093
commit
cab7caf80b
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ use crate::checkers::ast::Checker;
|
||||||
/// ```python
|
/// ```python
|
||||||
/// import logging
|
/// import logging
|
||||||
///
|
///
|
||||||
/// logger = logging.getLogger(__file__)
|
/// logger = logging.getLogger(__name__)
|
||||||
/// logger.info("Foobar")
|
/// logger.info("Foobar")
|
||||||
/// ```
|
/// ```
|
||||||
#[violation]
|
#[violation]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue