Only clean affected documents field if it is present.
Disable detailed logging.