sureshanaparti commented on code in PR #12018:
URL: https://github.com/apache/cloudstack/pull/12018#discussion_r2661446448


##########
utils/src/main/java/com/cloud/utils/UriUtils.java:
##########
@@ -500,8 +500,12 @@ public static InputStream getInputStreamFromUrl(String 
url, String user, String
             if ((user != null) && (password != null)) {
                 httpclient.getParams().setAuthenticationPreemptive(true);
                 Credentials defaultcreds = new 
UsernamePasswordCredentials(user, password);
-                httpclient.getState().setCredentials(new 
AuthScope(hostAndPort.first(), hostAndPort.second(), AuthScope.ANY_REALM), 
defaultcreds);
-                LOGGER.info("Added username=" + user + ", password=" + 
password + "for host " + hostAndPort.first() + ":" + hostAndPort.second());
+                httpclient.getState().setCredentials(
+                        new AuthScope(hostAndPort.first(), 
hostAndPort.second(), AuthScope.ANY_REALM), defaultcreds);
+                LOGGER.info("Added username={}, password=****** for host {}:{}"

Review Comment:
   ```suggestion
                   LOGGER.info("Added username={} along with password for host 
{}:{}"
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to