You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Add fallback for node 0.10
Improve the fallback mode
This commit is contained in:
9
index.js
9
index.js
@@ -13,7 +13,16 @@ var net = require("net"),
|
|||||||
connection_id = 0,
|
connection_id = 0,
|
||||||
default_port = 6379,
|
default_port = 6379,
|
||||||
default_host = "127.0.0.1",
|
default_host = "127.0.0.1",
|
||||||
|
debug;
|
||||||
|
|
||||||
|
/* istanbul ignore next */
|
||||||
|
if (util.debuglog) {
|
||||||
debug = util.debuglog('redis');
|
debug = util.debuglog('redis');
|
||||||
|
} else if (/\bredis\b/i.test(process.env.NODE_DEBUG)) {
|
||||||
|
debug = console.error;
|
||||||
|
} else {
|
||||||
|
debug = function() {};
|
||||||
|
}
|
||||||
|
|
||||||
// hiredis might not be installed
|
// hiredis might not be installed
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user