From 1babc6c66e94c055c5e8f3d6666855ba0920ed89 Mon Sep 17 00:00:00 2001 From: David BRAQUART Date: Thu, 5 Sep 2024 19:11:32 +0200 Subject: [PATCH] fix log key overwriting Signed-off-by: David BRAQUART --- .../modification/server/modifications/VscCreation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gridsuite/modification/server/modifications/VscCreation.java b/src/main/java/org/gridsuite/modification/server/modifications/VscCreation.java index 1ea845bd8..43d79e597 100644 --- a/src/main/java/org/gridsuite/modification/server/modifications/VscCreation.java +++ b/src/main/java/org/gridsuite/modification/server/modifications/VscCreation.java @@ -175,13 +175,13 @@ private VscConverterStation createConverterStation(Network network, ConverterStationCreationInfos converterStationCreationInfos, ReportNode subReportNode, String logFieldName) { - ReportNode converterStationReporter = subReportNode.newReportNode().withMessageTemplate("converterStationCreated" + logFieldName, logFieldName).add(); + ReportNode converterStationReporter = subReportNode.newReportNode().withMessageTemplate("converterStationCreationContainer" + logFieldName, logFieldName).add(); VoltageLevel voltageLevel = ModificationUtils.getInstance().getVoltageLevel(network, converterStationCreationInfos.getVoltageLevelId()); VscConverterStation vscConverterStation = voltageLevel.getTopologyKind() == TopologyKind.NODE_BREAKER ? createConverterStationInNodeBreaker(network, voltageLevel, converterStationCreationInfos, converterStationReporter) : createConverterStationInBusBreaker(voltageLevel, converterStationCreationInfos, converterStationReporter); converterStationReporter.newReportNode() - .withMessageTemplate("converterStationCreated" + logFieldName, "New converter station with id=${id} created") + .withMessageTemplate("converterStationCreationLog" + logFieldName, "New converter station with id=${id} created") .withUntypedValue("id", converterStationCreationInfos.getEquipmentId()) .withSeverity(TypedValue.INFO_SEVERITY) .add();