aboutsummaryrefslogtreecommitdiff
path: root/ms_specific_proxyservice/src
diff options
context:
space:
mode:
Diffstat (limited to 'ms_specific_proxyservice/src')
-rw-r--r--ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java b/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java
index fda988a6..cf55281d 100644
--- a/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java
+++ b/ms_specific_proxyservice/src/main/java/at/asitplus/eidas/specific/proxy/logger/AdvancedStatisicLogger.java
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
+import at.asitplus.eidas.specific.modules.msproxyservice.MsProxyServiceConstants;
import at.gv.egiz.eaaf.core.api.IRequest;
import at.gv.egiz.eaaf.core.api.IStatusMessenger;
import at.gv.egiz.eaaf.core.api.data.PvpAttributeDefinitions;
@@ -56,6 +57,8 @@ public class AdvancedStatisicLogger implements IStatisticLogger {
final StatisticLogEntry entry = buildCoreEntry(protocolRequest);
entry.setSuccess(SuccessEntry.builder()
.spSector(protocolRequest.getServiceProviderConfiguration().getAreaSpecificTargetIdentifier())
+ .spCountry(protocolRequest.getServiceProviderConfiguration().getConfigurationValue(
+ MsProxyServiceConstants.CONIG_PROPS_CONNECTOR_COUNTRYCODE))
.withMandates(selectMandateProcessType(authData))
.build());
writeEntryToLog(entry);
@@ -150,6 +153,9 @@ public class AdvancedStatisicLogger implements IStatisticLogger {
@JsonProperty("spSector")
private final String spSector;
+ @JsonProperty("spCountry")
+ private final String spCountry;
+
@JsonProperty("withMandates")
private final MandateProcess withMandates;
@@ -167,5 +173,4 @@ public class AdvancedStatisicLogger implements IStatisticLogger {
private final String errorMessage;
}
-
}