Added some more logging to assist with debugging
parent
13cead79e9
commit
6e1f390a34
|
|
@ -161,8 +161,15 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
@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<T> existingEntityResult = findExistingEntity(
|
||||
importedEntity.getUuid()
|
||||
);
|
||||
|
|
@ -268,7 +275,7 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
/**
|
||||
* 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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue