Skip to content

Commit

Permalink
improve log message on empty query hits
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdunnjpl committed Sep 6, 2023
1 parent ee9c7bc commit 6f28c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pds/registrysweepers/utils/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def query_registry_db(
hits_data_present_in_response = len(response_hits) > 0
if not hits_data_present_in_response:
log.error(
f"Response for query {query_id} contained no hits when hits were expected. Returned data is incomplete. Response was: {data}"
f"Response for query {query_id} contained no hits when hits were expected. Returned data is incomplete (got {served_hits} of {total_hits} total hits). Response was: {data}"
)
break

Expand Down

0 comments on commit 6f28c55

Please sign in to comment.