Skip to content

Commit dd4269a

Browse files
committed
remove remaining TRACE logs
Signed-off-by: David BRAQUART <[email protected]>
1 parent 2130273 commit dd4269a

File tree

2 files changed

+26
-23
lines changed

2 files changed

+26
-23
lines changed

src/main/java/org/gridsuite/shortcircuit/server/report/MapperBeans.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,32 @@
1212
*/
1313
@Configuration
1414
public class MapperBeans {
15+
public static final String KEY_DISCONNECTED_GENERATOR = "disconnectedTerminalGenerator";
16+
public static final String KEY_ADD_CONSTANT_RATION = "addConstantRatio";
17+
1518
@Bean
1619
public SeverityMapper powsyblAdnGeneratorsAndBatteriesSeverity() {
1720
// in generatorConversion and batteryConversion
18-
return new SeverityMapper("disconnectedTerminalGenerator", TypedValue.TRACE_SEVERITY);
21+
return new SeverityMapper(KEY_DISCONNECTED_GENERATOR, TypedValue.DETAIL_SEVERITY);
1922
}
2023

2124
@Bean
2225
public SeverityMapper powsyblAdnLinesSeverity() {
2326
// in branchConversion.twoWindingsTransformerConversion
24-
return new SeverityMapper("lineConversion", "addConstantRatio", TypedValue.TRACE_SEVERITY);
27+
return new SeverityMapper("lineConversion", KEY_ADD_CONSTANT_RATION, TypedValue.DETAIL_SEVERITY);
2528
}
2629

2730
@Bean
2831
public SeverityMapper powsyblAdnTwoWindingsTransformersSeverity() {
2932
// in branchConversion.twoWindingsTransformerConversion
30-
return new SeverityMapper("twoWindingsTransformerConversion", "addConstantRatio", TypedValue.TRACE_SEVERITY);
33+
return new SeverityMapper("twoWindingsTransformerConversion", KEY_ADD_CONSTANT_RATION, TypedValue.DETAIL_SEVERITY);
3134
}
3235

3336
@Bean
3437
public AdnSummarizeMapper powsyblAdnGeneratorsSummary() {
3538
return new AdnSummarizeMapper("generators",
3639
"generatorConversion",
37-
"disconnectedTerminalGenerator",
40+
KEY_DISCONNECTED_GENERATOR,
3841
"shortcircuit.server.disconnectedTerminalEquipmentSummary",
3942
ShortCircuitRunContext::getAdnSummarizeCounterGenerator);
4043
}
@@ -43,7 +46,7 @@ public AdnSummarizeMapper powsyblAdnGeneratorsSummary() {
4346
public AdnSummarizeMapper powsyblAdnBatteriesSummary() {
4447
return new AdnSummarizeMapper("batteries",
4548
"batteryConversion",
46-
"disconnectedTerminalGenerator",
49+
KEY_DISCONNECTED_GENERATOR,
4750
"shortcircuit.server.disconnectedTerminalEquipmentSummary",
4851
ShortCircuitRunContext::getAdnSummarizeCounterBattery);
4952
}
@@ -53,7 +56,7 @@ public AdnSummarizeMapper powsyblAdnLinesSummary() {
5356
// in branchConversion.twoWindingsTransformerConversion
5457
return new AdnSummarizeMapper("lines",
5558
"lineConversion",
56-
"addConstantRatio",
59+
KEY_ADD_CONSTANT_RATION,
5760
"shortcircuit.server.addConstantRatioSummary",
5861
ShortCircuitRunContext::getAdnSummarizeCounterLines);
5962
}
@@ -63,7 +66,7 @@ public AdnSummarizeMapper powsyblAdnTwoWindingsTransformersSummary() {
6366
// in branchConversion.twoWindingsTransformerConversion
6467
return new AdnSummarizeMapper("two windings transformers",
6568
"twoWindingsTransformerConversion",
66-
"addConstantRatio",
69+
KEY_ADD_CONSTANT_RATION,
6770
"shortcircuit.server.addConstantRatioSummary",
6871
ShortCircuitRunContext::getAdnSummarizeCounterT2W);
6972
}

src/test/resources/reporter_adn_modified.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,55 +37,55 @@
3737
"children" : [ {
3838
"messageKey" : "disconnectedTerminalGenerator",
3939
"values" : {
40-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
40+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
4141
"generator" : { "value" : "GENERAT3" }
4242
}
4343
}, {
4444
"messageKey" : "disconnectedTerminalGenerator",
4545
"values" : {
46-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
46+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
4747
"generator" : { "value" : "GENERAT8" }
4848
}
4949
}, {
5050
"messageKey" : "disconnectedTerminalGenerator",
5151
"values" : {
52-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
52+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
5353
"generator" : { "value" : "GENERAT4" }
5454
}
5555
}, {
5656
"messageKey" : "disconnectedTerminalGenerator",
5757
"values" : {
58-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
58+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
5959
"generator" : { "value" : "GENERATG" }
6060
}
6161
}, {
6262
"messageKey" : "disconnectedTerminalGenerator",
6363
"values" : {
64-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
64+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
6565
"generator" : { "value" : "GENERATF" }
6666
}
6767
}, {
6868
"messageKey" : "disconnectedTerminalGenerator",
6969
"values" : {
70-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
70+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
7171
"generator" : { "value" : "GENERATH" }
7272
}
7373
}, {
7474
"messageKey" : "disconnectedTerminalGenerator",
7575
"values" : {
76-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
76+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
7777
"generator" : { "value" : "GENERAT.HU6" }
7878
}
7979
}, {
8080
"messageKey" : "disconnectedTerminalGenerator",
8181
"values" : {
82-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
82+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
8383
"generator" : { "value" : "GENER.TG2" }
8484
}
8585
}, {
8686
"messageKey" : "disconnectedTerminalGenerator",
8787
"values" : {
88-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
88+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
8989
"generator" : { "value" : "GENERATJ" }
9090
}
9191
}, {
@@ -101,19 +101,19 @@
101101
"children" : [ {
102102
"messageKey" : "disconnectedTerminalGenerator",
103103
"values" : {
104-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
104+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
105105
"generator" : { "value" : "BATTERY1" }
106106
}
107107
}, {
108108
"messageKey" : "disconnectedTerminalGenerator",
109109
"values" : {
110-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
110+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
111111
"generator" : { "value" : "BATTERYA" }
112112
}
113113
}, {
114114
"messageKey" : "disconnectedTerminalGenerator",
115115
"values" : {
116-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
116+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
117117
"generator" : { "value" : "BATTERY2" }
118118
}
119119
}, {
@@ -134,7 +134,7 @@
134134
"vlId2" : { "value" : "MABCDP7" },
135135
"vlId1" : { "value" : "AABCDP7" },
136136
"nominalVoltage2" : { "value" : 300.0, "type" : "VOLTAGE" },
137-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
137+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
138138
"rfix" : { "value" : 1.1234567 },
139139
"nominalVoltage1" : { "value" : 400.0, "type" : "VOLTAGE" },
140140
"branch" : { "value" : "ABCDEFGHIJKLM" }
@@ -145,7 +145,7 @@
145145
"vlId2" : { "value" : "P.ABCP7" },
146146
"vlId1" : { "value" : "HABCDP7" },
147147
"nominalVoltage2" : { "value" : 400.0, "type" : "VOLTAGE" },
148-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
148+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
149149
"rfix" : { "value" : 0.95 },
150150
"nominalVoltage1" : { "value" : 300.0, "type" : "VOLTAGE" },
151151
"branch" : { "value" : "ABDCEFGHI.ABC" }
@@ -156,7 +156,7 @@
156156
"vlId2" : { "value" : "ABCDEP7" },
157157
"vlId1" : { "value" : "FGHIJP7" },
158158
"nominalVoltage2" : { "value" : 400.0, "type" : "VOLTAGE" },
159-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
159+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
160160
"rfix" : { "value" : 0.95 },
161161
"nominalVoltage1" : { "value" : 300.0, "type" : "VOLTAGE" },
162162
"branch" : { "value" : "ABCDEFGHIJKLM" }
@@ -167,7 +167,7 @@
167167
"vlId2" : { "value" : "QSDFGHJ" },
168168
"vlId1" : { "value" : "WXCVBN7" },
169169
"nominalVoltage2" : { "value" : 400.0, "type" : "VOLTAGE" },
170-
"reportSeverity" : { "value" : "TRACE", "type" : "SEVERITY" },
170+
"reportSeverity" : { "value" : "DETAIL", "type" : "SEVERITY" },
171171
"rfix" : { "value" : 0.95 },
172172
"nominalVoltage1" : { "value" : 300.0, "type" : "VOLTAGE" },
173173
"branch" : { "value" : "AZERTYUIOPKLM" }

0 commit comments

Comments
 (0)