[I should have left a comment earlier]

We used to warn inside checkErrorThreshold() which used to be called on every incorrect record. But later changed the default behavior to check the error threshold only during close(). As a side affect, we lost the above log.

I should probably move lines 175-177 also to here.