mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Logging exception when sending emails fails in the workflow
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user