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