Skip to content

Commit

Permalink
Merge pull request #630 from ase-101/develop
Browse files Browse the repository at this point in the history
MOSIP-29771 Added log line
  • Loading branch information
ase-101 authored Nov 23, 2023
2 parents 6c428fb + bdc7dab commit c263025
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import io.mosip.kernel.core.logger.spi.Logger;
import io.mosip.preregistration.core.config.LoggerConfiguration;
import io.mosip.kernel.core.transliteration.spi.Transliteration;
import io.mosip.preregistration.application.dto.TransliterationRequestDTO;
import io.mosip.preregistration.application.dto.TransliterationResponseDTO;
Expand All @@ -29,6 +32,8 @@
@Service
public class TransliterationService {

private Logger log = LoggerConfiguration.logConfig(TransliterationService.class);

/**
* Autowired reference
*/
Expand Down Expand Up @@ -65,6 +70,7 @@ public MainResponseDTO<TransliterationResponseDTO> translitratorService(
TransliterationErrorMessage.INCORRECT_MANDATORY_FIELDS.getMessage(), responseDTO);
}
} catch (Exception e) {
log.error("Failed to transliterate >>", e);
throw new UnSupportedLanguageException(TransliterationErrorCodes.PRG_TRL_APP_002.getCode(),
TransliterationErrorMessage.UNSUPPORTED_LANGUAGE.getMessage(), responseDTO);
}
Expand Down

0 comments on commit c263025

Please sign in to comment.