Skip to content

Commit

Permalink
Merge pull request #295 from pilhuhn/less-noise2
Browse files Browse the repository at this point in the history
Don't throw the full stack trace as it is too noisy and not needed.
  • Loading branch information
burmanm committed Jul 31, 2015
2 parents 531e090 + 9a34e3a commit 6371f34
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -174,7 +174,8 @@ private void startMetricsService() {
session = createSession();
} catch (Exception t) {
Throwable rootCause = Throwables.getRootCause(t);
LOG.warn("Could not connect to Cassandra cluster - assuming its not up yet", rootCause);
LOG.warn("Could not connect to Cassandra cluster - assuming its not up yet: ",
rootCause.getLocalizedMessage());
// cycle between original and more wait time - avoid waiting huge amounts of time
long delay = 1L + ((connectionAttempts - 1L) % 4L);
LOG.warn("[{}] Retrying connecting to Cassandra cluster in [{}]s...", connectionAttempts, delay);
Expand Down

0 comments on commit 6371f34

Please sign in to comment.