Removing extra log calls in api.