1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Remove warning about missing hiredis. You probably do want it though.

This commit is contained in:
Matt Ranney
2010-12-08 18:42:07 -08:00
parent e0ff3fea10
commit cfe0df1c3f
4 changed files with 40 additions and 6 deletions

View File

@@ -8,19 +8,21 @@ var net = require("net"),
default_port = 6379,
default_host = "127.0.0.1";
// can set this to true to enable for all connections
exports.debug_mode = false;
// hiredis might not be installed
try {
require("./lib/parser/hiredis");
parsers.push(require("./lib/parser/hiredis"));
} catch (err) {
console.log("hiredis parser not installed.");
if (exports.debug_mode) {
console.log("hiredis parser not installed.");
}
}
parsers.push(require("./lib/parser/javascript"));
// can set this to true to enable for all connections
exports.debug_mode = false;
function to_array(args) {
var len = args.length,
arr = new Array(len), i;