diff --git a/controller/place.js b/controller/place.js index 29acfe8b..a4996a11 100644 --- a/controller/place.js +++ b/controller/place.js @@ -22,7 +22,7 @@ function setup( backend ){ }; }); - logger.debug( '[ES req]', JSON.stringify(query) ); + logger.debug( '[ES req]', query ); service.mget( backend, query, function( err, docs ) { console.log('err:' + err); @@ -35,7 +35,7 @@ function setup( backend ){ else { res.data = docs; } - logger.debug('[ES response]', JSON.stringify(docs)); + logger.debug('[ES response]', docs); next(); }); diff --git a/controller/search.js b/controller/search.js index 7949c8ad..e2a8acff 100644 --- a/controller/search.js +++ b/controller/search.js @@ -31,7 +31,7 @@ function setup( backend, query ){ cmd.type = req.clean.layers; } - logger.debug( '[ES req]', JSON.stringify(cmd) ); + logger.debug( '[ES req]', cmd ); // query backend service.search( backend, cmd, function( err, docs, meta ){ @@ -49,7 +49,7 @@ function setup( backend, query ){ res.data = docs; res.meta = meta; } - logger.debug('[ES response]', JSON.stringify(docs)); + logger.debug('[ES response]', docs); next(); });