'Log \'Establishing connection to\'.'

def connecting(self, reposname, hostname, port):

    if (not self.logger.isEnabledFor(logging.INFO)):
        return
    displaystr = ''
    hostname = (hostname if hostname else '')
    port = (('%s' % port) if port else '')
    if hostname:
        displaystr = ('    to    %s:%s' % (hostname, port))
    self.logger.info(('Establishing    connection%s    (%s)' % (displaystr, reposname)))
