diff --git a/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/TransliterationService.java b/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/TransliterationService.java index 4de86e7e1c..51d1ad7969 100644 --- a/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/TransliterationService.java +++ b/pre-registration/pre-registration-application-service/src/main/java/io/mosip/preregistration/application/service/TransliterationService.java @@ -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; @@ -29,6 +32,8 @@ @Service public class TransliterationService { + private Logger log = LoggerConfiguration.logConfig(TransliterationService.class); + /** * Autowired reference */ @@ -65,6 +70,7 @@ public MainResponseDTO 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); }