CloudBender/cloudbender/__init__.py

16 lines
415 B
Python
Raw Normal View History

2018-11-22 18:31:59 +00:00
import logging
__author__ = "Stefan Reimer"
__email__ = "stefan@zero-downtimet.net"
2021-10-04 15:51:16 +00:00
__version__ = "0.10.1"
2018-11-22 18:31:59 +00:00
# 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
class NullHandler(logging.Handler): # pragma: no cover
def emit(self, record):
pass
logging.getLogger('cloudbender').addHandler(NullHandler())