Browse Source

cleaned up log message parts

pull/782/head
Stephen Hess 8 years ago
parent
commit
a4a6a691c8
  1. 9
      controller/search.js

9
controller/search.js

@ -93,8 +93,13 @@ function setup( apiConfig, esclient, query ){
// store the query_type for subsequent middleware // store the query_type for subsequent middleware
res.meta.query_type = renderedQuery.type; res.meta.query_type = renderedQuery.type;
logger.info(`[controller:search] [queryType:${renderedQuery.type}] [es_result_count:` + const messageParts = [
_.get(res, 'data', []).length + ']'); '[controller:search]',
`[queryType:${renderedQuery.type}]`,
`[es_result_count:${_.get(res, 'data', []).length}]`
];
logger.info(messageParts.join(' '));
} }
logger.debug('[ES response]', docs); logger.debug('[ES response]', docs);
next(); next();

Loading…
Cancel
Save