From 0d5cd2bd99978959cde26c443199afb6f9222214 Mon Sep 17 00:00:00 2001 From: Aanand Prasad Date: Thu, 30 Jun 2016 13:38:31 -0700 Subject: [PATCH] Reword connection retry messages --- worker/src/main/java/worker/Worker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worker/src/main/java/worker/Worker.java b/worker/src/main/java/worker/Worker.java index 66c6c0c..040c1a2 100644 --- a/worker/src/main/java/worker/Worker.java +++ b/worker/src/main/java/worker/Worker.java @@ -53,7 +53,7 @@ class Worker { conn.keys("*"); break; } catch (JedisConnectionException e) { - System.err.println("Failed to connect to redis - retrying"); + System.err.println("Waiting for redis"); sleep(1000); } } @@ -74,7 +74,7 @@ class Worker { try { conn = DriverManager.getConnection(url, "postgres", ""); } catch (SQLException e) { - System.err.println("Failed to connect to db - retrying"); + System.err.println("Waiting for db"); sleep(1000); } } @@ -88,6 +88,7 @@ class Worker { System.exit(1); } + System.err.println("Connected to db"); return conn; }