Log truncation works as expected