Add log for rest API