modified configuration file for web
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
This commit is contained in:
13
nginx-nodejs-redis/web/node_modules/redis/lib/debug.js
generated
vendored
Normal file
13
nginx-nodejs-redis/web/node_modules/redis/lib/debug.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var index = require('../');
|
||||
|
||||
function debug () {
|
||||
if (index.debug_mode) {
|
||||
var data = Array.prototype.slice.call(arguments);
|
||||
data.unshift(new Date().toISOString());
|
||||
console.error.apply(null, data);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = debug;
|
||||
Reference in New Issue
Block a user