Skip to content

Commit

Permalink
Revert mistake in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thangqp committed Oct 3, 2024
1 parent 0869a9a commit 03ca6f8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 03ca6f8

Please sign in to comment.