diff --git a/src/main/java/io/mosip/print/util/NotificationUtil.java b/src/main/java/io/mosip/print/util/NotificationUtil.java index b8a83420..e5430cb3 100644 --- a/src/main/java/io/mosip/print/util/NotificationUtil.java +++ b/src/main/java/io/mosip/print/util/NotificationUtil.java @@ -111,6 +111,7 @@ private NotificationResponseDTO sendEmail( String emailId, HttpHeaders headers, private String getEmailContent(String emailContentTpl, Map attributes, String preferredLang) throws IOException, ApisResourceAccessException { InputStream in = templateGenerator.getTemplate(emailContentTpl, attributes, preferredLang); + log.info("preferredLang: {}", preferredLang); if (in == null && Objects.equals(preferredLang, "English")) { return EMAIL_DEFAULT; } @@ -123,6 +124,7 @@ else if (in == null) { private String getEmailSubject(String emailSubTpl, Map attributes, String templateLang) throws IOException, ApisResourceAccessException { InputStream in = templateGenerator.getTemplate(emailSubTpl, attributes, templateLang); + log.info("templateLang: {}", templateLang); if (in == null && Objects.equals(templateLang, "English")) { return EMAIL_SUB_DEFAULT; }