* By design, most logging happens in an `ensure` block. This ensures that no return value is modified unexpectedly.