log api responses