jackrabbit-oak
jackrabbit-oak copied to clipboard
OAK-10375: remove binary data from logs
If there is an error while indexing a binary property, we shouldn't log the data. We should just log the property name.
Current
ERROR o.a.j.o.p.i.l.LuceneDocumentMaker - could not index similarity field for property
haystack0 = <LONG GARBLED BINARY DATA>
This PR
ERROR o.a.j.o.p.i.l.LuceneDocumentMaker - could not index similarity field for property
haystack0
Hmm as long as it doesn't violate any privacy concerns, I guess so. @reschke
That's a good point. Paths can contain senstive information as well, but I believe we use them alaready almost everywhere, because that information is really essential for debugging.