log trace of doi update failures, and send log as email