From cd820dfcbe8e4e9c3806e1eb303827349b3a96d3 Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:10:06 +0100 Subject: [PATCH 1/2] fix: change log level when we can't get the schema from GCP Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- apollo-router/src/uplink/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apollo-router/src/uplink/mod.rs b/apollo-router/src/uplink/mod.rs index 1c9f55b9e8..f84830dcf0 100644 --- a/apollo-router/src/uplink/mod.rs +++ b/apollo-router/src/uplink/mod.rs @@ -120,7 +120,6 @@ pub(crate) fn stream_supergraph( } }, Err(err) => { - tracing::error!("error fetching supergraph from Uplink: {:?}", err); if let Some(urls) = &urls { current_url_idx = (current_url_idx + 1) % urls.len(); } @@ -154,7 +153,7 @@ pub(crate) async fn fetch_supergraph( None => match http_request(GCP_URL, &request_body).await { Ok(response) => response, Err(e) => { - tracing::error!("could not get schema from GCP, trying AWS: {:?}", e); + tracing::debug!("could not get schema from GCP, trying AWS: {:?}", e); http_request(AWS_URL, &request_body).await? } }, From 1df6ace024ffa5ba8f506c45ca69f7f140f5859d Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:12:13 +0100 Subject: [PATCH 2/2] changelog Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- NEXT_CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index eba01bf318..ebca2d6e59 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -246,6 +246,12 @@ By [@bryncooke](https://github.com/bryncooke) in https://github.com/apollographq ## 🐛 Fixes +### Change log level when we can't get the schema from GCP ([Issue #2004](https://github.com/apollographql/router/issues/2004)) + +Set the log level for this specific log to `debug`. + +By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/2215 + ### Fix panic when dev mode enabled with empty config file ([Issue #2182](https://github.com/apollographql/router/issues/2182)) If you're running the Router with dev mode with an empty config file, it will no longer panic