From 6e1f390a34592861816b7054206242211ac7dd13 Mon Sep 17 00:00:00 2001 From: Jens Pelzetter Date: Sat, 28 Jan 2023 12:27:21 +0100 Subject: [PATCH] Added some more logging to assist with debugging --- .../libreccm/imexport/AbstractEntityImExporter.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java b/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java index ea5a29be6..43e516875 100644 --- a/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java +++ b/ccm-core/src/main/java/org/libreccm/imexport/AbstractEntityImExporter.java @@ -161,8 +161,15 @@ public abstract class AbstractEntityImExporter { @Transactional(Transactional.TxType.REQUIRES_NEW) public void importEntity(final String data) throws ImportExpection { try { - final T importedEntity = objectMapper.readValue(data, - getEntityClass()); + final T importedEntity = objectMapper.readValue( + data, + getEntityClass() + ); + LOGGER.info( + "Importing entity identified by UUID {} of type {}...", + importedEntity.getUuid(), + getEntityClass().getName() + ); final Optional existingEntityResult = findExistingEntity( importedEntity.getUuid() ); @@ -268,7 +275,7 @@ public abstract class AbstractEntityImExporter { /** * Reloads the entity to export. Entities become detacted for several * reasons before they are passed to the null null null null null null null - * null null null null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The + * null null null null null null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The * implementation of this should reload the passed entity. * * @param entity The entity to reload.