Skip to content

Commit 17ee4a3

Browse files
committed
internal logger instance rename
1 parent b7e3baa commit 17ee4a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

advanced_descriptors/log_on_access.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import typing
2424
import warnings
2525

26-
_logger: logging.Logger = logging.getLogger(__name__)
26+
_LOGGER: logging.Logger = logging.getLogger(__name__)
2727

2828

2929
class LogOnAccess(property):
@@ -213,7 +213,7 @@ def _get_logger_for_instance(self, instance: typing.Any) -> logging.Logger:
213213
return instance.logger
214214
elif hasattr(instance, "log") and isinstance(instance.log, logging.Logger):
215215
return instance.log
216-
return _logger
216+
return _LOGGER
217217

218218
def __get__(self, instance: typing.Any, owner: typing.Optional[type] = None) -> typing.Any:
219219
"""Get descriptor.

0 commit comments

Comments
 (0)