You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
361 B
19 lines
361 B
6 years ago
|
__all__ = ['retry']
|
||
|
|
||
|
import logging
|
||
|
|
||
|
from .api import retry
|
||
|
|
||
|
|
||
|
# Set default logging handler to avoid "No handler found" warnings.
|
||
|
try: # Python 2.7+
|
||
|
from logging import NullHandler
|
||
|
except ImportError:
|
||
|
class NullHandler(logging.Handler):
|
||
|
|
||
|
def emit(self, record):
|
||
|
pass
|
||
|
|
||
|
log = logging.getLogger(__name__)
|
||
|
log.addHandler(NullHandler())
|