Comment-out common and debug statements in scenario_manager

This commit is contained in:
LeeDr 2016-06-02 18:10:29 -05:00
parent 1c0cbe23dc
commit 61f975c843

View file

@ -1,6 +1,6 @@
import {
common
} from '../support';
// import {
// common
// } from '../support';
var path = require('path');
var elasticsearch = require('elasticsearch');
@ -30,7 +30,7 @@ ScenarioManager.prototype.load = function (id) {
var scenario = config[id];
if (!scenario) return Promise.reject('No scenario found for ' + id);
common.debug('Loading data [' + id + '].....................');
// common.debug('Loading data [' + id + '].....................');
return Promise.all(scenario.bulk.map(function mapBulk(bulk) {
var loadIndexDefinition;
if (bulk.indexDefinition) {
@ -63,7 +63,7 @@ ScenarioManager.prototype.load = function (id) {
}
})
.then(function () {
common.debug('Finished loading [' + id + '].....................');
// common.debug('Finished loading [' + id + '].....................');
})
.catch(function (err) {
if (bulk.haltOnFailure === false) return;
@ -89,7 +89,7 @@ ScenarioManager.prototype.unload = function (id) {
index: indices
})
.then(function () {
common.debug('Deleted index [' + id + '].....................');
// common.debug('Deleted index [' + id + '].....................');
})
.catch(function (reason) {
// if the index never existed yet, or was already deleted it's OK
@ -144,7 +144,7 @@ ScenarioManager.prototype.loadIfEmpty = function (id) {
if (response.count === 0) {
return self.load(id);
} else {
common.debug('Found data [' + id + '] count = ' + response.count);
// common.debug('Found data [' + id + '] count = ' + response.count);
}
});
}))