Add data logging for ot.apply errors.