Skip to content

Commit

Permalink
return sanitized content
Browse files Browse the repository at this point in the history
  • Loading branch information
GordeaS authored and GordeaS committed Jun 17, 2024
1 parent 67dfaff commit 1099568
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1099568

Please sign in to comment.