def _find_ports_by_macs(self, context, mac_addresses):
        ports = []
        for mac in mac_addresses:
            # Will do a search by mac if the mac isn't malformed
            try:
                port_ob = objects.Port.get_by_address(context, mac)
                ports.append(port_ob)

            except exception.PortNotFound:
                LOG.warning(_LW('MAC address %s not found in database'), mac)

        return ports
Logs an error for a client.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/agent_base_vendor.py/BaseAgentVendor._find_ports_by_macs--crossover with--dataset/ETHPy150Open google/grr/grr/lib/hunts/implementation.py/GRRHunt.LogClientError