Skip to content

Commit b10f81e

Browse files
committed
fix logging
1 parent 2e1ae35 commit b10f81e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

processProxy.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ function ProcessProxy(processToSpawn, arguments,
129129
}
130130

131131

132-
this._cmdBlacklistRegexes = [];
133-
if (typeof(processCmdBlacklistRegex)=='undefined') {
132+
this._cmdBlacklistRegexes = []; // holds RegExp objs
133+
this._cmdBlacklistRegexesConfs = processCmdBlacklistRegex; // retains orig configs
134+
if (typeof(processCmdBlacklistRegex) == 'undefined') {
134135
// nothing to do
135136
} else {
136137
// parse them
@@ -316,7 +317,6 @@ ProcessProxy.prototype._parseRegexConfigs = function(regexConfigsToConvert) {
316317
try {
317318

318319
if (typeof(regexConf.flags) != 'undefined') {
319-
console.log(regexConf.regex);
320320
parsed = new RegExp(regexConf.regex,regexConf.flags);
321321
} else {
322322
parsed = new RegExp(regexConf.regex);
@@ -412,7 +412,6 @@ ProcessProxy.prototype._handleCommandFinished = function(command) {
412412
* Returns true if the command is blacklisted due to a match, false on no matches
413413
*/
414414
ProcessProxy.prototype._commandIsBlacklisted = function(command) {
415-
416415
for (var i=0; i<this._cmdBlacklistRegexes.length; i++) {
417416
var regexp = this._cmdBlacklistRegexes[i];
418417
var result = regexp.exec(command);
@@ -903,7 +902,7 @@ ProcessProxy.prototype.getStatus = function() {
903902
'options':this._processOptions,
904903
'isValid':this._isValid,
905904
'createdAt':(this._createdAt ? this._createdAt.toISOString() : null),
906-
'cmdBlacklistRegexes':this._cmdBlacklistRegexes,
905+
'cmdBlacklistRegexes':this._cmdBlacklistRegexesConfs,
907906
'invalidateOnRegexConfig':this._invalidateOnRegexConfig,
908907
'autoInvalidationConfig':this._autoInvalidationConfig,
909908
'activeCommandStack':[],

0 commit comments

Comments
 (0)