Skip to content

Commit

Permalink
[MOSIP-31071] Added logger to debug
Browse files Browse the repository at this point in the history
Signed-off-by: Aiham <[email protected]>
  • Loading branch information
aihamh committed Jan 16, 2024
1 parent 7715dda commit 877145f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ private void prepareDemographicResponse(DemographicMetadataDTO demographicMetada
JSONParser jsonParser = new JSONParser();
for (DemographicEntity demographicEntity : demographicEntities) {
log.info("sessionId", "idType", "id", "decryption start time : " + DateUtils.getUTCCurrentDateTimeString());
log.info("sessionId", "idType", "id", "applicationjson : " + new String(demographicEntity.getApplicantDetailJson()));
log.info("sessionId", "idType", "id", "preregId : " + demographicEntity.getPreRegistrationId());

byte[] decryptedString = cryptoUtil.decrypt(demographicEntity.getApplicantDetailJson(),
DateUtils.getUTCCurrentDateTime());
log.info("sessionId", "idType", "id", "decryption end time : " + DateUtils.getUTCCurrentDateTimeString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public byte[] decrypt(byte[] originalInput, LocalDateTime localDateTime) {
try {

CryptoManagerRequestDTO dto = new CryptoManagerRequestDTO();
log.info("sessionId", "idType", "cryptoApplicationId:", cryptoApplcationId);
log.info("sessionId", "idType", "cryptoReferenceId:", cryptoReferenceId);
log.info("sessionId", "idType", "originalInput:", new String(originalInput, StandardCharsets.UTF_8));
dto.setApplicationId(cryptoApplcationId);
dto.setData(new String(originalInput, StandardCharsets.UTF_8));
dto.setReferenceId(cryptoReferenceId);
Expand Down

0 comments on commit 877145f

Please sign in to comment.