From a4a6280ff83aa4a1e44a5e2f9c9fa375e5bf60c0 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 22 Jun 2025 15:34:04 +0200 Subject: linuxnamespaces.syscalls: mark the logger object as private --- linuxnamespaces/syscalls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linuxnamespaces/syscalls.py') diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py index 9c18af5..108c357 100644 --- a/linuxnamespaces/syscalls.py +++ b/linuxnamespaces/syscalls.py @@ -19,7 +19,7 @@ from .filedescriptor import FileDescriptor, FileDescriptorLike from .atlocation import AtFlags, AtLocation, AtLocationLike, PathConvertible -logger = logging.getLogger(__name__) +_logger = logging.getLogger(__name__) LIBC_SO = ctypes.CDLL(None, use_errno=True) @@ -443,9 +443,9 @@ def call_libc(funcname: str, *args: typing.Any) -> int: the function returns an integer that is non-negative on success. On failure, an OSError with errno is raised. """ - logger.debug("calling libc function %s%r", funcname, args) + _logger.debug("calling libc function %s%r", funcname, args) ret: int = LIBC_SO[funcname](*args) - logger.debug("%s returned %d", funcname, ret) + _logger.debug("%s returned %d", funcname, ret) if ret < 0: err = ctypes.get_errno() raise OSError( -- cgit v1.2.3