Skip to content

Commit 53e1861

Browse files
Update utils/src/main/java/com/cloud/utils/UriUtils.java
Co-authored-by: dahn <[email protected]>
1 parent 460e71e commit 53e1861

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/src/main/java/com/cloud/utils/UriUtils.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,10 @@ public static InputStream getInputStreamFromUrl(String url, String user, String
502502
Credentials defaultcreds = new UsernamePasswordCredentials(user, password);
503503
httpclient.getState().setCredentials(
504504
new AuthScope(hostAndPort.first(), hostAndPort.second(), AuthScope.ANY_REALM), defaultcreds);
505-
LOGGER.info("Added username=" + user + ", password=****** " + "for host " + hostAndPort.first() + ":"
506-
+ hostAndPort.second());
505+
LOGGER.info("Added username={}, password=****** for host {}:{}"
506+
, user
507+
, hostAndPort.first()
508+
, hostAndPort.second());
507509
}
508510
// Execute the method.
509511
GetMethod method = new GetMethod(url);

0 commit comments

Comments
 (0)