Skip to content

Commit bbc40fa

Browse files
committed
Reword connection retry messages
1 parent 022cb87 commit bbc40fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

worker/src/main/java/worker/Worker.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static Jedis connectToRedis(String host) {
5353
conn.keys("*");
5454
break;
5555
} catch (JedisConnectionException e) {
56-
System.err.println("Failed to connect to redis - retrying");
56+
System.err.println("Waiting for redis");
5757
sleep(1000);
5858
}
5959
}
@@ -74,7 +74,7 @@ static Connection connectToDB(String host) throws SQLException {
7474
try {
7575
conn = DriverManager.getConnection(url, "postgres", "");
7676
} catch (SQLException e) {
77-
System.err.println("Failed to connect to db - retrying");
77+
System.err.println("Waiting for db");
7878
sleep(1000);
7979
}
8080
}
@@ -88,6 +88,7 @@ static Connection connectToDB(String host) throws SQLException {
8888
System.exit(1);
8989
}
9090

91+
System.err.println("Connected to db");
9192
return conn;
9293
}
9394

0 commit comments

Comments
 (0)