Skip to content

Commit 3cd96eb

Browse files
committed
updating some logic/comments
1 parent 6580001 commit 3cd96eb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/main/java/io/crdb/docker/RemoteClientApplication.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static void main(String[] args) {
4343
@Override
4444
public void run(ApplicationArguments args) throws Exception {
4545

46-
// these values/parameters correspond to CockroachDB Connection Environment variables
46+
// these values/parameters correspond to supported CockroachDB Environment variables
4747
final String host = env.getProperty(COCKROACH_HOST);
4848
final Integer port = env.getProperty(COCKROACH_PORT, Integer.class);
4949
final String user = env.getProperty(COCKROACH_USER);
@@ -66,20 +66,12 @@ public void run(ApplicationArguments args) throws Exception {
6666

6767
log.info("{} is [{}]", DATABASE_NAME, databaseName);
6868
log.info("{} is [{}]", DATABASE_USER, databaseUser);
69-
70-
if (databasePassword != null) {
71-
log.info("{} is [{}]", DATABASE_PASSWORD, "********");
72-
} else {
73-
log.info("{} was not provided", DATABASE_PASSWORD);
74-
}
69+
log.info("{} is [{}]", DATABASE_PASSWORD, databasePassword);
7570

7671
log.info("{} is [{}]", COCKROACH_ORG, licenseOrg);
7772
log.info("{} is [{}]", COCKROACH_LICENSE_KEY, licenseKey);
7873
log.info("{} is [{}]", COCKROACH_INIT, initCluster);
7974

80-
//Map<String, String> environment = new ProcessBuilder().environment();
81-
//environment.forEach((key, value) -> log.debug(key + value));
82-
8375
if (initCluster) {
8476
List<String> commands = new ArrayList<>();
8577
commands.add("/cockroach");

0 commit comments

Comments
 (0)