> @@ -83,8 +83,13 @@ static String 
> requestPayloadIfStringOrFormIfNotReturnEmptyString(HttpRequest req
>              && request.getPayload().getContentMetadata().getContentLength() 
> != null
>              && request.getPayload().getContentMetadata().getContentLength() 
> < 1024) {
>           try {
> -            return String.format(" [%s] ", request.getPayload() instanceof 
> StringPayload ? request.getPayload()
> -                  .getRawContent() : 
> Strings2.toStringAndClose(request.getPayload().openStream()));
> +            String logStatement;
> +            if (request.getPayload() instanceof StringPayload) {
> +               logStatement = request.getPayload().isSensitive() ? "---- 
> SENSITIVE INFORMATION ----" : request.getPayload().getRawContent().toString();

The sensitive flag should apply to all payload types, not just string ones.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/830/files#r35732027

Reply via email to