Added log after mappings
This commit is contained in:
parent
4ceed8a581
commit
de8e5c6397
|
@ -176,8 +176,9 @@ public class Translator {
|
|||
throw new TransformationException("Exception while applying "+mapping,t);
|
||||
}
|
||||
}
|
||||
|
||||
return mapper.readValue(targetCtx.jsonString(), ZenodoDeposition.class);
|
||||
String serializedOutput=targetCtx.jsonString();
|
||||
log.debug("Mapping complete. Going to return : "+serializedOutput);
|
||||
return mapper.readValue(serializedOutput, ZenodoDeposition.class);
|
||||
}catch(Throwable t) {
|
||||
log.error("Unable to translate "+source+" using previous "+target,t);
|
||||
throw new TransformationException("Unable to translate "+source.getName(),t);
|
||||
|
|
Loading…
Reference in New Issue