hapi-ot-logger
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -6,2 +6,3 @@ var os = require("os"), | ||
consoleWriter = require("./console-writer"), | ||
once = require("lodash.once"), | ||
client, cfg, connectionTimer, | ||
@@ -31,2 +32,3 @@ _commonFields = function(log, type){ | ||
module.exports.config = function(config, cb){ | ||
var callback = once(cb); | ||
var defaults = { | ||
@@ -57,6 +59,6 @@ redis: { | ||
connectionTimer = setTimeout(cb, 2000); | ||
connectionTimer = setTimeout(callback, 2000); | ||
client.on('ready', function(){ | ||
clearTimeout(connectionTimer); | ||
cb(); | ||
callback(); | ||
}); | ||
@@ -63,0 +65,0 @@ }; |
{ | ||
"name": "hapi-ot-logger", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "logger conforming to ot standards", | ||
@@ -34,2 +34,3 @@ "main": "index.js", | ||
"json-stringify-safe": "^5.0.0", | ||
"lodash.once": "^3.0.0", | ||
"redis": "^0.12.1" | ||
@@ -36,0 +37,0 @@ }, |
14758
365
5
+ Addedlodash.once@^3.0.0
+ Addedlodash.before@3.0.3(transitive)
+ Addedlodash.once@3.0.1(transitive)