Skip to content

Commit

Permalink
Add Credential logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Li committed Aug 25, 2021
1 parent 39311aa commit 22cc113
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cdi-core/src/main/java/com/linkedin/cdi/util/Credentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,14 @@ public static String getProxyHost(State state) {
public static int getProxyPort(State state) {
return state.getPropAsInt(ConfigurationKeys.SOURCE_CONN_USE_PROXY_PORT, -1);
}

public static void log(State state) {
LOG.info("privateKey: {}", getPrivateKey(state));
LOG.info("knownHosts: {}", getKnownHosts(state));
LOG.info("userName: {}", getUserName(state));
LOG.info("hostName: {}", getHostName(state));
LOG.info("port: {}", getPort(state));
LOG.info("proxyHost: {}" , getProxyHost(state));
LOG.info("proxyPort: {}", getProxyPort(state));
}
}

0 comments on commit 22cc113

Please sign in to comment.