From f1e0353ba35b0d921fc4ecc92e21a5283a114711 Mon Sep 17 00:00:00 2001 From: Oleksii Shmalko Date: Mon, 5 May 2025 16:03:04 +0300 Subject: [PATCH] feat: add more logs when configuration fetch error occurs --- .changeset/smart-melons-march.md | 8 ++++++++ eppo_core/src/configuration_poller.rs | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/smart-melons-march.md diff --git a/.changeset/smart-melons-march.md b/.changeset/smart-melons-march.md new file mode 100644 index 00000000..bfc3e3bc --- /dev/null +++ b/.changeset/smart-melons-march.md @@ -0,0 +1,8 @@ +--- +"eppo_core": patch +"python-sdk": patch +"ruby-sdk": patch +"rust-sdk": patch +--- + +Add more logging when configuration fails to fetch. diff --git a/eppo_core/src/configuration_poller.rs b/eppo_core/src/configuration_poller.rs index 4d2f256c..9e30ab9d 100644 --- a/eppo_core/src/configuration_poller.rs +++ b/eppo_core/src/configuration_poller.rs @@ -148,7 +148,9 @@ async fn configuration_poller( }; loop { - match fetcher.fetch_configuration().await { + match fetcher.fetch_configuration().await.inspect_err(|err| { + log::warn!("Failed to fetch configuration: {err:?}"); + }) { Ok(configuration) => { store.set_configuration(Arc::new(configuration)); update_status(Ok(()));