67694: forgot to log error stack itself

This commit is contained in:
Marie Verdonck
2019-12-19 10:50:02 +01:00
parent 943b3f1356
commit 39c727a803
2 changed files with 2 additions and 2 deletions

View File

@@ -284,7 +284,7 @@ public class XmlWorkflowFactoryImpl implements XmlWorkflowFactory {
Workflow defaultWorkflow = this.getDefaultWorkflow();
return (defaultWorkflow.getID().equalsIgnoreCase(workflowName));
} catch (Exception e) {
log.error("Error while trying to check if " + workflowName + " is the default workflow");
log.error("Error while trying to check if " + workflowName + " is the default workflow", e);
throw new WorkflowConfigurationException("Error while trying to check if " + workflowName
+ " is the default workflow");
}

View File

@@ -35,7 +35,7 @@ public class WorkflowDefinitionConverter implements DSpaceConverter<Workflow, Wo
try {
restModel.setIsDefault(xmlWorkflowFactory.isDefaultWorkflow(modelObject.getID()));
} catch (WorkflowConfigurationException e) {
log.error("Error while trying to check if " + modelObject.getID() + " is the default workflow");
log.error("Error while trying to check if " + modelObject.getID() + " is the default workflow", e);
}
return restModel;
}