mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Comment-out common and debug statements in scenario_manager
This commit is contained in:
parent
1c0cbe23dc
commit
61f975c843
1 changed files with 7 additions and 7 deletions
14
test/fixtures/scenario_manager.js
vendored
14
test/fixtures/scenario_manager.js
vendored
|
@ -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);
|
||||
}
|
||||
});
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue