Fixing REST call logging