Remove some JSON.stringify

This commit is contained in:
Raul Ochoa 2016-04-14 13:20:22 +02:00
parent 9ab4eb5801
commit a9ca453b17

View File

@ -32,8 +32,6 @@ function layerQuery(query, columnNames) {
function appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId) { function appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId) {
var analyses = requestMapConfig.analyses || []; var analyses = requestMapConfig.analyses || [];
debug(JSON.stringify(requestMapConfig, null, 4));
requestMapConfig.analyses = analyses.map(function(analysisDefinition) { requestMapConfig.analyses = analyses.map(function(analysisDefinition) {
var analysisGraph = new camshaft.reference.AnalysisGraph(analysisDefinition); var analysisGraph = new camshaft.reference.AnalysisGraph(analysisDefinition);
var definition = analysisDefinition; var definition = analysisDefinition;
@ -44,8 +42,6 @@ function appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId) {
return definition; return definition;
}); });
debug(JSON.stringify(requestMapConfig, null, 4));
return requestMapConfig; return requestMapConfig;
} }
@ -95,7 +91,6 @@ AnalysisMapConfigAdapter.prototype.getLayers = function(analysisConfiguration, r
requestMapConfig = appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId); requestMapConfig = appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId);
if (!shouldAdaptLayers(requestMapConfig)) { if (!shouldAdaptLayers(requestMapConfig)) {
debug('mapconfig output', JSON.stringify(requestMapConfig, null, 4));
return callback(null, requestMapConfig); return callback(null, requestMapConfig);
} }