Added log after mappings

This commit is contained in:
Fabio Sinibaldi 2020-01-13 15:23:36 +01:00
parent 4ceed8a581
commit de8e5c6397
1 changed files with 3 additions and 2 deletions

View File

@ -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);