Skip to content

Commit

Permalink
EA-3619 - imporve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SrishtiSingh-eu committed Dec 1, 2023
1 parent 626af64 commit 51aaccb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public FullBean detectLanguageForProxy(FullBean bean) throws EuropeanaApiExcepti
// 3. collect all the values in one list for single lang-detection request per proxy
LanguageDetectionUtils.getTextsForDetectionRequest(textsForDetection, textsPerField, langValueFieldMapForDetection);

LOG.debug("Gathering detection values for {} took {}ms ", bean.getAbout(), (System.currentTimeMillis() - start));
LOG.debug("Gathering detection values for {} took {} ms ", bean.getAbout(), (System.currentTimeMillis() - start));

// 4. send lang-detect request
List<String> detectedLanguages = getTranslationApiClient().detectLang(createLangDetectRequest(textsForDetection, langHint)).getLangs();
Expand All @@ -119,7 +119,7 @@ public FullBean detectLanguageForProxy(FullBean bean) throws EuropeanaApiExcepti
// 6. add all the new language tagged values to europeana proxy
Proxy europeanProxy = getEuropeanaProxy(bean.getProxies(), bean.getAbout());
updateProxy(europeanProxy, correctLangValueMap);
LOG.debug("Language detection took {}ms", bean.getAbout(), (System.currentTimeMillis() - start));
LOG.debug("Language detection for {} took {} ms", bean.getAbout(), (System.currentTimeMillis() - start));
}
return bean;
}
Expand Down

0 comments on commit 51aaccb

Please sign in to comment.