Permalink
Browse files

Emit a log event with level 'error' if an error happens when connecti…

…ng to

cassandra.
  • Loading branch information...
Kami committed Apr 30, 2012
1 parent f395545 commit 18dd6456af0123c37a4cfae7294563468d3a40eb
Showing with 7 additions and 0 deletions.
  1. +5 −0 CHANGES
  2. +2 −0 lib/driver.js
View
@@ -1,3 +1,8 @@
Changes with cassandra-client in development:
- Emit a 'log' event with 'error' level if an error happens when connecting to
Cassandra.
Changes with cassandra-client 0.9.0
- Change PooledConnection to retry a query if a TimedOutException is returned.
View
@@ -315,6 +315,8 @@ Connection.prototype.connect = function(callback) {
[login, learn, use],
function(err) {
if (err) {
self.emit('log', 'error', 'Error while connecting: ' + err.toString(),
{'connectionInfo': self.connectionInfo, 'err': err});
self.close();
}
callback(err);

0 comments on commit 18dd645

Please sign in to comment.