def _on_connection_auth_response(self, conn, data, **kwargs):
        metadata = []
        if data.get('identity'):
            metadata.append("Identity: %r" % data['identity'])
        if data.get('permission_count'):
            metadata.append("Permissions: %d" % data['permission_count'])
        if data.get('identity_url'):
            metadata.append(data['identity_url'])
        logger.info('[%s:%s] AUTH accepted %s' % (conn.id, self.name, ' '.join(metadata)))
dataset/ETHPy150Open nsqio/pynsq/nsq/client.py/Client._on_connection_auth_response/original