in clay/logger.py [0:0]
def handleError(self, record):
'''
If an error occurs trying to send the log message, close the connection
and delegate the exception handling to the superclass' handleError,
which raises the exception (potentially killing the log thread) unless
self.raiseExceptions is False.
http://hg.python.org/cpython/file/e64d4518b23c/Lib/logging/__init__.py#l797
'''
INTERNAL_LOG.exception('Unable to send log')
self.cleanup()
self.connect_wait *= BACKOFF_MULTIPLE
logging.Handler.handleError(self, record)