def send_socket(self, message):
if self.log_sends:<EOL><INDENT>start_time = time.time()<EOL><DEDENT>try:<EOL><INDENT>self.send_message(message)<EOL><DEDENT>except Exception as error:<EOL><INDENT>logger.error('<STR_LIT>'.format(message, error))<EOL><DEDENT>else:<EOL><INDENT>if self.log_sends:<EOL><INDENT>elapsed_time = time.time() - start_time<EOL>logger.info('<STR_LIT>'.format(<EOL>message, self.host, self.port, elapsed_time))<EOL><DEDENT><DEDENT>
Low-level function to send message bytes to this Sender's socket.
        You should usually call send() instead of this function (unless you're
        subclassing or writing unit tests).