How does the sentence end?

Derrick was angry at Logan when he learned that (
Logan ) was the one who did the prank on him.