Added some more logging to assist with debugging

deploy_packages_to_gitea
Jens Pelzetter 2023-01-28 12:27:21 +01:00
parent 13cead79e9
commit 6e1f390a34
1 changed files with 10 additions and 3 deletions

View File

@ -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.