1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Add good stack traces tests and fix stack traces in debug mode

This commit is contained in:
Ruben Bridgewater
2016-06-01 14:04:25 +02:00
parent 579584d629
commit a41cfa9aae
4 changed files with 81 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
'use strict';
var debug_mode = require('../').debug_mode;
var betterStackTraces = process.env.NODE_ENV && process.env.NODE_ENV.toUpperCase() === 'DEVELOPMENT' || debug_mode;
var betterStackTraces = /development/i.test(process.env.NODE_ENV) || /\bredis\b/i.test(process.env.NODE_DEBUG);
function Command (command, args, callback, call_on_write) {
this.command = command;