From 98084e5148fda4a5272a473c072a7d7178dcf5cd Mon Sep 17 00:00:00 2001 From: Andre da Silva Date: Wed, 23 Oct 2024 14:40:42 -0300 Subject: [PATCH] Return WARN if blob_last_used_by returns an Err in validators (#2698) ## Motivation Currently if a call to `blob_last_used_by` returns an `Err`, we'll print a `ERROR` level log. That is not very accurate because validators could still be not fully in sync and some of them could be missing some blobs. ## Proposal Change log level to `WARN` ## Test Plan CI ## Release Plan - Nothing to do / These changes follow the usual release cycle. --- linera-service/src/proxy/grpc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linera-service/src/proxy/grpc.rs b/linera-service/src/proxy/grpc.rs index 2e81e23e20f..0c73ea1f3d8 100644 --- a/linera-service/src/proxy/grpc.rs +++ b/linera-service/src/proxy/grpc.rs @@ -51,7 +51,7 @@ use tonic::{ Request, Response, Status, }; use tower::{builder::ServiceBuilder, Layer, Service}; -use tracing::{debug, info, instrument, Instrument as _}; +use tracing::{debug, info, instrument, Instrument as _, Level}; #[cfg(with_metrics)] use { linera_base::prometheus_util, @@ -512,7 +512,7 @@ where )?)) } - #[instrument(skip_all, err(Display))] + #[instrument(skip_all, err(level = Level::WARN))] async fn blob_last_used_by( &self, request: Request,