Skip to content

Commit

Permalink
fix log key overwriting
Browse files Browse the repository at this point in the history
Signed-off-by: David BRAQUART <[email protected]>
  • Loading branch information
dbraquart committed Sep 5, 2024
1 parent eab5f0a commit 1babc6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1babc6c

Please sign in to comment.