1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/debug.js
2017-05-26 12:32:05 +02:00

15 lines
225 B
JavaScript

'use strict'
const index = require('../')
/**
* @description Print a debug statement if in debug mode
*/
function debug () {
if (index.debugMode) {
console.error.apply(null, arguments)
}
}
module.exports = debug