diff --git a/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java b/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java index 7c6ec7d..371f6b6 100644 --- a/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java +++ b/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java @@ -446,8 +446,9 @@ private long sendTranslationRequest(String content) throws TranslationException, private String sanitizeRequestBodyForLogging(String content) { if(content != null) { - content.replace(getCredentialUsername(), "*****"); - content.replace(getCredentialPwd(), "*****"); + return content.replace(getCredentialUsername(), "*****") + .replace(getCredentialPwd(), "*****"); + } return content; }