From f3fbe4ff90ad590ac12e0b083a4ed0d8f4baba0a Mon Sep 17 00:00:00 2001 From: Maxim Martynov Date: Sat, 19 Aug 2023 05:53:16 +0300 Subject: [PATCH] Do not setup logging in libraries (#233) --- src/smbclient/__init__.py | 5 ----- src/smbprotocol/__init__.py | 7 ------- 2 files changed, 12 deletions(-) diff --git a/src/smbclient/__init__.py b/src/smbclient/__init__.py index c7b3f553..eaec4af4 100644 --- a/src/smbclient/__init__.py +++ b/src/smbclient/__init__.py @@ -2,8 +2,6 @@ # Copyright: (c) 2019, Jordan Borean (@jborean93) # MIT License (see LICENSE or https://opensource.org/licenses/MIT) -import logging - import smbclient.path from smbclient._io import SEEK_CUR, SEEK_END, SEEK_SET from smbclient._os import ( @@ -45,6 +43,3 @@ register_session, reset_connection_cache, ) - -logger = logging.getLogger(__name__) -logger.addHandler(logging.NullHandler()) diff --git a/src/smbprotocol/__init__.py b/src/smbprotocol/__init__.py index 237787e0..2dd7a52a 100644 --- a/src/smbprotocol/__init__.py +++ b/src/smbprotocol/__init__.py @@ -2,13 +2,6 @@ # Copyright: (c) 2019, Jordan Borean (@jborean93) # MIT License (see LICENSE or https://opensource.org/licenses/MIT) -import logging -from logging import NullHandler - -logger = logging.getLogger(__name__) -logger.addHandler(NullHandler()) - - MAX_PAYLOAD_SIZE = 65536