rethinkdbdash
Advanced tools
Comparing version 2.3.28 to 2.3.29
@@ -30,2 +30,5 @@ var util = require('util'); | ||
self._log = helper.createLogger(self, options.silent || false); | ||
if (typeof options.log == 'function') { | ||
self.on('log', options.log); | ||
} | ||
self._draining = false; | ||
@@ -32,0 +35,0 @@ self._numConnections = 0; |
{ | ||
"name": "rethinkdbdash", | ||
"version": "2.3.28", | ||
"version": "2.3.29", | ||
"description": "A Node.js driver for RethinkDB with promises and a connection pool", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -201,2 +201,3 @@ rethinkdbdash | ||
- `optionalRun`: <boolean> - if `false`, yielding a query will not run it, default `true` | ||
- `log`: <function> - will be called with the log events by the pool master | ||
@@ -275,7 +276,12 @@ In case of a single instance, you can directly pass `host` and `port` in the top level parameters. | ||
The pool master by default will log all errors/new states on `stderr`. If you do not | ||
want to pollute `stderr`, pass `silent: true` when you import the driver. You can retrieve the | ||
logs by binding a listener for the `log` event on the pool master. | ||
want to pollute `stderr`, pass `silent: true` when you import the driver and | ||
provide your own `log` method. | ||
```js | ||
r.getPoolMaster().on('log', console.log); | ||
r = require('rethinkdbdash')({ | ||
silent: true, | ||
log: function(message) { | ||
console.log(message); | ||
} | ||
}); | ||
``` | ||
@@ -282,0 +288,0 @@ |
@@ -1,2 +0,2 @@ | ||
This is a fork of [reqlite](https://github.com/neumino/github). | ||
This is a fork of [reqlite](https://github.com/neumino/reqlite). | ||
@@ -3,0 +3,0 @@ The project was not totally complete, and this fork includes hacks to: |
838504
25665
567