Make failure messages less spammy

Batch them in one message per failure event, rather than per document/
page/etc per event.

Change-Id: If07c0081d736ddf9243fd2b7722be0bec162dd49
Merge "Make failure messages less spammy"