We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 700e26d + 48bd898 commit 14a3347Copy full SHA for 14a3347
boto3/__init__.py
@@ -12,6 +12,7 @@
12
# language governing permissions and limitations under the License.
13
14
import logging
15
+from logging import NullHandler
16
17
from boto3.compat import _warn_deprecated_python
18
from boto3.session import Session
@@ -101,11 +102,6 @@ def resource(*args, **kwargs):
101
102
return _get_default_session().resource(*args, **kwargs)
103
104
-# Set up logging to ``/dev/null`` like a library is supposed to.
105
+# Set up do-nothing logging like a library is supposed to.
106
# https://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library
-class NullHandler(logging.Handler):
107
- def emit(self, record):
108
- pass
109
-
110
111
logging.getLogger('boto3').addHandler(NullHandler())
0 commit comments