Skip to content

Commit

Permalink
Remove unnecessary warn logs from ResponseVisitor (#6192)
Browse files Browse the repository at this point in the history
  • Loading branch information
tninesling authored Oct 25, 2024
1 parent 79b0aca commit 17d90eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changesets/fix_tninesling_remove_demand_control_warnings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Remove noisy demand control logs ([PR #6192](https://github.com/apollographql/router/pull/6192))

Demand control no longer logs warnings when a subgraph response is missing a requested field.

By [@tninesling](https://github.com/tninesling) in https://github.com/apollographql/router/pull/6192
7 changes: 0 additions & 7 deletions apollo-router/src/graphql/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,11 @@ pub(crate) trait ResponseVisitor {
inner_field.as_ref(),
value,
);
} else {
tracing::warn!("The response did not include a field corresponding to query field {:?}", inner_field);
}
}
apollo_compiler::executable::Selection::FragmentSpread(fragment_spread) => {
if let Some(fragment) = fragment_spread.fragment_def(request) {
self.visit_selections(request, variables, &fragment.selection_set, fields);
} else {
tracing::warn!(
"The fragment {} was not found in the query document.",
fragment_spread.fragment_name
);
}
}
apollo_compiler::executable::Selection::InlineFragment(inline_fragment) => {
Expand Down

0 comments on commit 17d90eb

Please sign in to comment.