Console logs should be more clear what it represents.
This commit is contained in:
		@@ -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);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user