'We received a failed request to create a session; record that \'ping\' in our DB'

@classmethod
def record_ping(cls, id, ip):

    try:
        (cur_device, _) = UnregisteredDevice.objects.get_or_create(id=id)
        (cur_log, _) = cls.get_or_initialize(device=cur_device)
        cur_log.npings += 1
        cur_log.last_ip = ip
        cur_log.save()
    except Exception as e:
        logging.error(('Error    recording    unregistered    device    ping:    %s' % e))
