Skip to content

Commit 9ade50c

Browse files
authored
Replace bespoke NullHandler with Python's impl (boto#3510)
1 parent 5ef4558 commit 9ade50c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

botocore/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@
1515
import logging
1616
import os
1717
import re
18+
from logging import NullHandler
1819

1920
__version__ = '1.39.4'
2021

2122

22-
class NullHandler(logging.Handler):
23-
def emit(self, record):
24-
pass
25-
26-
2723
# Configure default logger to do nothing
2824
log = logging.getLogger('botocore')
2925
log.addHandler(NullHandler())

0 commit comments

Comments
 (0)