awesome-compose/nginx-nodejs-redis/web/node_modules/redis/lib/debug.js
ajeetraina 71b622220f modified configuration file for web
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
2022-03-13 13:09:07 +05:30

14 lines
272 B
JavaScript

'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;