diff --git a/crates/ruff_linter/src/rules/flake8_logging/rules/invalid_get_logger_argument.rs b/crates/ruff_linter/src/rules/flake8_logging/rules/invalid_get_logger_argument.rs index 17c8ad8676..368bdfa5d0 100644 --- a/crates/ruff_linter/src/rules/flake8_logging/rules/invalid_get_logger_argument.rs +++ b/crates/ruff_linter/src/rules/flake8_logging/rules/invalid_get_logger_argument.rs @@ -39,6 +39,10 @@ use crate::{Edit, Fix, FixAvailability, Violation}; /// logger = logging.getLogger(__name__) /// ``` /// +/// ## Fix safety +/// This fix is always unsafe, as changing the arguments to `getLogger` can change the +/// received logger object, and thus program behavior. +/// /// [logging documentation]: https://docs.python.org/3/library/logging.html#logger-objects #[derive(ViolationMetadata)] pub(crate) struct InvalidGetLoggerArgument;