add chatty logging code to reducer so we can see why this fails on cluster