log api failures