Skip to content

Commit 2e1ac4c

Browse files
author
Phil Varner
authored
log search and aggregate parameters at info level (#537)
1 parent 07689b1 commit 2e1ac4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/api.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ const buildPaginationLinks = function (limit, parameters, bbox, intersects, endp
575575
}
576576

577577
const searchItems = async function (collectionId, queryParameters, backend, endpoint, httpMethod) {
578-
logger.debug('Query parameters: %j', queryParameters)
578+
logger.debug('Search parameters (unprocessed): %j', queryParameters)
579579
const {
580580
next,
581581
bbox,
@@ -616,7 +616,7 @@ const searchItems = async function (collectionId, queryParameters, backend, endp
616616
collectionEndpoint = `${endpoint}/collections/${collectionId}`
617617
}
618618

619-
logger.debug('Search parameters: %j', searchParams)
619+
logger.info('Search parameters (processed): %j', searchParams)
620620

621621
try { // Attempt to catch invalid geometry before querying Search
622622
const hints = geometry ? geojsonhint.hint(geometry, {}) : []
@@ -724,7 +724,7 @@ const agg = function (esAggs, name, dataType) {
724724
const aggregate = async function (
725725
collectionId, queryParameters, backend, endpoint, httpMethod
726726
) {
727-
logger.debug('Aggregate parameters: %j', queryParameters)
727+
logger.debug('Aggregate parameters (unprocessed): %j', queryParameters)
728728

729729
const {
730730
bbox,
@@ -764,7 +764,7 @@ const aggregate = async function (
764764
}
765765
}
766766

767-
logger.debug('Aggregate parameters: %j', searchParams)
767+
logger.info('Aggregate parameters (processed): %j', searchParams)
768768

769769
const aggregationsRequested = extractAggregations(queryParameters)
770770

0 commit comments

Comments
 (0)