Console logs should be more clear what it represents.

This commit is contained in:
2020-03-17 12:15:28 +01:00
parent 71a9f99e45
commit 9db73c8c01

View File

@@ -8,19 +8,19 @@ try {
console.error("Missing redis-configurations.."); console.error("Missing redis-configurations..");
client = { client = {
rpush: function() { rpush: function() {
console.log("redis lpush", arguments); console.log("redis-dummy lpush", arguments);
if (typeof arguments[arguments.length - 1] == "function") { if (typeof arguments[arguments.length - 1] == "function") {
arguments[arguments.length - 1](null); arguments[arguments.length - 1](null);
} }
}, },
lrange: function() { lrange: function() {
console.log("redis lrange", arguments); console.log("redis-dummy lrange", arguments);
if (typeof arguments[arguments.length - 1] == "function") { if (typeof arguments[arguments.length - 1] == "function") {
arguments[arguments.length - 1](null); arguments[arguments.length - 1](null);
} }
}, },
del: function() { del: function() {
console.log("redis del", arguments); console.log("redis-dummy del", arguments);
if (typeof arguments[arguments.length - 1] == "function") { if (typeof arguments[arguments.length - 1] == "function") {
arguments[arguments.length - 1](null); arguments[arguments.length - 1](null);
} }