Browse Source

Debug log full queries and responses between Pelias and Elasticsearch

pull/417/head
Vesa Meskanen 9 years ago
parent
commit
899d520cd7
  1. 4
      controller/search.js

4
controller/search.js

@ -30,6 +30,8 @@ function setup( backend, query ){
cmd.type = req.clean.type;
}
logger.debug( '[ES req]', JSON.stringify(cmd) );
// query backend
service.search( backend, cmd, function( err, docs, meta ){
@ -42,7 +44,7 @@ function setup( backend, query ){
res.data = docs;
res.meta = meta;
}
logger.debug('[ES response]', JSON.stringify(docs));
next();
});

Loading…
Cancel
Save