logs req/res