Added logging to FriendEndpoint