logging done in rest client