# -*- coding: utf-8 -*-
import logging
import warnings
__author__ = 'Cloudreach'
__email__ = 'sceptre@cloudreach.com'
__version__ = '2.4.0'
# Set up logging to ``/dev/null`` like a library is supposed to.
# http://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library
[docs]class NullHandler(logging.Handler): # pragma: no cover
[docs] def emit(self, record):
pass
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
logging.getLogger('sceptre').addHandler(NullHandler())