Skip to content

Commit 0794894

Browse files
committed
Replace bespoke NullHandler with Python's impl
1 parent f4341ad commit 0794894

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

s3transfer/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def __call__(self, bytes_amount):
134134
import socket
135135
import string
136136
import threading
137+
from logging import NullHandler
137138

138139
from botocore.compat import six # noqa: F401
139140
from botocore.exceptions import IncompleteReadError, ResponseStreamingError
@@ -148,11 +149,6 @@ def __call__(self, bytes_amount):
148149
__version__ = '0.13.0'
149150

150151

151-
class NullHandler(logging.Handler):
152-
def emit(self, record):
153-
pass
154-
155-
156152
logger = logging.getLogger(__name__)
157153
logger.addHandler(NullHandler())
158154

0 commit comments

Comments
 (0)