From 8920b981ef71151416097a632351d1609cea41fb Mon Sep 17 00:00:00 2001 From: dceejay Date: Thu, 21 May 2015 14:12:49 +0100 Subject: [PATCH] leveldb reports not ready as error rather than warn, so can be seen by catch node. --- storage/leveldb/67-leveldb.js | 4 ++-- storage/leveldb/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/leveldb/67-leveldb.js b/storage/leveldb/67-leveldb.js index 98b4b14f..cfccf0b2 100644 --- a/storage/leveldb/67-leveldb.js +++ b/storage/leveldb/67-leveldb.js @@ -61,7 +61,7 @@ module.exports = function(RED) { } else { node.error("Cannot make key string from msg.topic"); } } - else { node.warn("Database not ready"); } + else { node.error("Database not ready",msg); } }); } RED.nodes.registerType("leveldb in",LevelDBNodeIn); @@ -89,7 +89,7 @@ module.exports = function(RED) { } else { node.error("Cannot make key string from msg.topic"); } } - else { node.warn("Database not ready"); } + else { node.error("Database not ready",msg); } }); } RED.nodes.registerType("leveldb out",LevelDBNodeOut); diff --git a/storage/leveldb/package.json b/storage/leveldb/package.json index 4891439c..bd6326ba 100644 --- a/storage/leveldb/package.json +++ b/storage/leveldb/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-leveldb", - "version" : "0.0.3", + "version" : "0.0.4", "description" : "A Node-RED node to read and write to a LevelDB database", "dependencies" : { "level" : "1.0.0"