Logging exception when sending emails fails in the workflow

This commit is contained in:
Kevin Van de Velde
2022-01-20 14:09:29 +01:00
parent f6a0fcb64b
commit 5396216aa8

View File

@@ -681,7 +681,7 @@ public class XmlWorkflowServiceImpl implements XmlWorkflowService {
}
} catch (MessagingException e) {
log.warn(LogManager.getHeader(context, "notifyOfArchive",
"cannot email user" + " item_id=" + item.getID()));
"cannot email user" + " item_id=" + item.getID()), e);
}
}
@@ -715,7 +715,7 @@ public class XmlWorkflowServiceImpl implements XmlWorkflowService {
} catch (MessagingException e) {
log.warn(LogManager.getHeader(c, "notifyOfCuration",
"cannot email users of workflow_item_id " + wi.getID()
+ ": " + e.getMessage()));
+ ": " + e.getMessage()), e);
}
}
@@ -1195,7 +1195,7 @@ public class XmlWorkflowServiceImpl implements XmlWorkflowService {
log.warn(LogManager.getHeader(c, "notify_of_reject",
"cannot email user" + " eperson_id" + e.getID()
+ " eperson_email" + e.getEmail()
+ " workflow_item_id" + wi.getID()));
+ " workflow_item_id" + wi.getID()), ex);
}
}