Skip to content

Commit

Permalink
Shorten overly verbose debug log (#4104)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai authored Nov 9, 2023
1 parent 98e8dbb commit da2f0b4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions quickwit/quickwit-search/src/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,13 @@ pub(crate) async fn search_partial_hits_phase(
.await
.context("failed to merge leaf search responses")?
.map_err(|error: TantivyError| crate::SearchError::Internal(error.to_string()))?;
debug!(leaf_search_response = ?leaf_search_response, "Merged leaf search response.");

debug!(
num_hits = leaf_search_response.num_hits,
failed_splits = ?leaf_search_response.failed_splits,
num_attempted_splits = leaf_search_response.num_attempted_splits,
has_intermediate_aggregation_result = leaf_search_response.intermediate_aggregation_result.is_some(),
"Merged leaf search response."
);
if !leaf_search_response.failed_splits.is_empty() {
error!(failed_splits = ?leaf_search_response.failed_splits, "Leaf search response contains at least one failed split.");
let errors: String = leaf_search_response.failed_splits.iter().join(", ");
Expand Down Expand Up @@ -1061,7 +1066,10 @@ pub async fn root_list_terms(
merged_iter.collect()
};

debug!(leaf_list_terms_response = ?leaf_list_terms_response, "Merged leaf search response.");
debug!(
leaf_list_terms_response_count = leaf_list_terms_response.len(),
"Merged leaf search response."
);

let elapsed = start_instant.elapsed();

Expand Down

0 comments on commit da2f0b4

Please sign in to comment.