Reword connection retry messages
This commit is contained in:
parent
500db05c54
commit
0d5cd2bd99
@ -53,7 +53,7 @@ class Worker {
|
|||||||
conn.keys("*");
|
conn.keys("*");
|
||||||
break;
|
break;
|
||||||
} catch (JedisConnectionException e) {
|
} catch (JedisConnectionException e) {
|
||||||
System.err.println("Failed to connect to redis - retrying");
|
System.err.println("Waiting for redis");
|
||||||
sleep(1000);
|
sleep(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ class Worker {
|
|||||||
try {
|
try {
|
||||||
conn = DriverManager.getConnection(url, "postgres", "");
|
conn = DriverManager.getConnection(url, "postgres", "");
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
System.err.println("Failed to connect to db - retrying");
|
System.err.println("Waiting for db");
|
||||||
sleep(1000);
|
sleep(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -88,6 +88,7 @@ class Worker {
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.err.println("Connected to db");
|
||||||
return conn;
|
return conn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user