diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-06-22 15:34:04 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-06-22 15:34:04 +0200 |
commit | a4a6280ff83aa4a1e44a5e2f9c9fa375e5bf60c0 (patch) | |
tree | 2c1822e671f3215e87856e688947d6a89580ce55 /linuxnamespaces/syscalls.py | |
parent | 76375ef872b23c7b0307eab2780ca0d30bf78d27 (diff) | |
download | python-linuxnamespaces-a4a6280ff83aa4a1e44a5e2f9c9fa375e5bf60c0.tar.gz |
linuxnamespaces.syscalls: mark the logger object as private
Diffstat (limited to 'linuxnamespaces/syscalls.py')
-rw-r--r-- | linuxnamespaces/syscalls.py | 6 |
1 files changed, 3 insertions, 3 deletions
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( |