Add log for rest and response