in clay/logger.py [0:0]
def connect(self):
'''
Create a connection with the server, sleeping for some
period of time if connection errors have occurred recently.
'''
self.sock = socket.socket()
if self.ssl_ca_file:
self.sock = ssl.wrap_socket(self.sock,
ssl_version=ssl.PROTOCOL_TLSv1,
cert_reqs=ssl.CERT_REQUIRED,
ca_certs=self.ssl_ca_file)
INTERNAL_LOG.debug('Connecting (backoff: %.03f)' %
self.connect_wait)
time.sleep(self.connect_wait)
self.sock.connect((self.host, self.port))