Skip to content

Commit 8b94415

Browse files
Debug ES query
1 parent adb1039 commit 8b94415

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/helper.js

+2
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ function * fetchFromES (query, resource, parentSpan) {
235235
const esClient = getEsClient()
236236
// Construct ES filter
237237
const filter = prepESFilter(query, resource)
238+
logger.debug('Elasticsearch query is:')
239+
logger.debug(JSON.stringify(filter, null, 4))
238240
// Search with constructed filter
239241
const docs = yield esClient.search(filter)
240242
// Extract data from hits

0 commit comments

Comments
 (0)