Skip to content

Commit

Permalink
MOSIP-29771 Added error log
Browse files Browse the repository at this point in the history
  • Loading branch information
ase-101 authored Nov 23, 2023
1 parent 6c428fb commit 143c117
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
@Service
public class TransliterationService {

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

/**
* Autowired reference
*/
Expand Down Expand Up @@ -65,6 +67,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 143c117

Please sign in to comment.