diff --git a/src/main/java/org/gridsuite/modification/server/modifications/NetworkModificationApplicator.java b/src/main/java/org/gridsuite/modification/server/modifications/NetworkModificationApplicator.java index 67e3f9134..9ebdcb33d 100644 --- a/src/main/java/org/gridsuite/modification/server/modifications/NetworkModificationApplicator.java +++ b/src/main/java/org/gridsuite/modification/server/modifications/NetworkModificationApplicator.java @@ -14,6 +14,7 @@ import com.powsybl.iidm.network.Network; import com.powsybl.network.store.client.NetworkStoreService; import com.powsybl.network.store.client.PreloadingStrategy; + import jakarta.annotation.PreDestroy; import lombok.Getter; import lombok.Setter; @@ -196,9 +197,9 @@ private void apply(AbstractModification modification, Network network, ReportNod private void handleException(NetworkModificationException.Type typeIfError, ReportNode subReportNode, Exception e) { boolean isApplicationException = PowsyblException.class.isAssignableFrom(e.getClass()); - //if (!isApplicationException && LOGGER.isErrorEnabled()) { - LOGGER.error(e.toString(), e); - //} + if (!isApplicationException && LOGGER.isErrorEnabled()) { + LOGGER.error(e.toString(), e); + } String errorMessage = isApplicationException ? e.getMessage() : "Technical error: " + e; subReportNode.newReportNode()