Added logging to the REST framework