log response to console