13 lines
392 B
Python
13 lines
392 B
Python
# # Set default logging handler to avoid "No handler found" warnings.
|
|
# import logging
|
|
# try: # Python 2.7+
|
|
# from logging import NullHandler
|
|
# except ImportError:
|
|
# class NullHandler(logging.Handler):
|
|
# def emit(self, record):
|
|
# pass
|
|
#
|
|
# logging.getLogger(__name__).addHandler(NullHandler())
|
|
#import logging
|
|
#logging.getLogger(__name__).setLevel(logging.DEBUG)
|