File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
worker/src/main/java/worker Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ static Jedis connectToRedis(String host) {
53
53
conn .keys ("*" );
54
54
break ;
55
55
} catch (JedisConnectionException e ) {
56
- System .err .println ("Failed to connect to redis - retrying " );
56
+ System .err .println ("Waiting for redis" );
57
57
sleep (1000 );
58
58
}
59
59
}
@@ -74,7 +74,7 @@ static Connection connectToDB(String host) throws SQLException {
74
74
try {
75
75
conn = DriverManager .getConnection (url , "postgres" , "" );
76
76
} catch (SQLException e ) {
77
- System .err .println ("Failed to connect to db - retrying " );
77
+ System .err .println ("Waiting for db " );
78
78
sleep (1000 );
79
79
}
80
80
}
@@ -88,6 +88,7 @@ static Connection connectToDB(String host) throws SQLException {
88
88
System .exit (1 );
89
89
}
90
90
91
+ System .err .println ("Connected to db" );
91
92
return conn ;
92
93
}
93
94
You can’t perform that action at this time.
0 commit comments