Skip to content

Commit

Permalink
Do not setup logging in libraries (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus authored Aug 19, 2023
1 parent b81d5f1 commit f3fbe4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/smbclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Copyright: (c) 2019, Jordan Borean (@jborean93) <[email protected]>
# 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 (
Expand Down Expand Up @@ -45,6 +43,3 @@
register_session,
reset_connection_cache,
)

logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())
7 changes: 0 additions & 7 deletions src/smbprotocol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
# Copyright: (c) 2019, Jordan Borean (@jborean93) <[email protected]>
# 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


Expand Down

0 comments on commit f3fbe4f

Please sign in to comment.