Skip to content

Commit

Permalink
Remove log line
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystle Salazar committed Mar 30, 2023
1 parent 5436b8f commit 51f62e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/catalog/api/controllers/search_controller.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import json
import logging as log
import pprint
from itertools import accumulate
Expand Down Expand Up @@ -407,10 +406,9 @@ def search(
try:
if settings.VERBOSE_ES_RESPONSE:
log.info(pprint.pprint(s.to_dict()))

search_response = s.execute()
log.info(
f"query={json.dumps(s.to_dict())}," f" es_took_ms={search_response.took}"
)

if settings.VERBOSE_ES_RESPONSE:
log.info(pprint.pprint(search_response.to_dict()))
except RequestError as e:
Expand Down

0 comments on commit 51f62e3

Please sign in to comment.