Elffuss BraidHub

kikocis/java-driver public

Log keyspace xxx does not exist at WARN level (JAVA-534).
Changesetbf316cfd6b9ab7951037539d2cb046dfaf9b224adfb2ef2d8198b2086e5460bc
Authorolim7t <omichallat+github@gmail.com> · 2015-04-01 15:35 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-04-01 15:35 +02:00
Parentscbb199d764d9

Browse the files at this changeset

2 files changed

modified driver-core/CHANGELOG.rst +1 −0
@@ -33,6 +33,7 @@
3333 (JAVA-698)
3434 - [bug] Fix issue when executing a PreparedStatement from another cluster
3535 (JAVA-641)
36+- [improvement] Log keyspace xxx does not exist at WARN level (JAVA-534)
3637
3738 Merged from 2.0.9_fixes branch:
3839
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +3 −1
@@ -347,7 +347,9 @@
347347 // It can happen however that the node we're connecting to
348348 // is not up on the schema yet. In that case, defuncting
349349 // the connection is not a bad choice.
350- defunct(new ConnectionException(address, String.format("Problem while setting keyspace, got %s as response", response)));
350+ String message = String.format("Problem while setting keyspace, got %s as response", response);
351+ logger.warn("{} {}", this, message);
352+ defunct(new ConnectionException(address, message));
351353 break;
352354 }
353355 } catch (ConnectionException e) {