From ff9ad1803b77f627c66f1f8afec01db8d8fb4dec Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 28 Aug 2023 13:27:02 -0400 Subject: [PATCH 1/2] fix: report addresses without checksum --- graph-gateway/src/client_query.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graph-gateway/src/client_query.rs b/graph-gateway/src/client_query.rs index 5683fd8d..fc527489 100644 --- a/graph-gateway/src/client_query.rs +++ b/graph-gateway/src/client_query.rs @@ -414,7 +414,7 @@ async fn handle_client_query_inner( match &auth { AuthToken::ApiKey(api_key) => tracing::info!( target: reports::CLIENT_QUERY_TARGET, - user_address = %api_key.user_address, + user_address = ?api_key.user_address, api_key = %api_key.key, ), AuthToken::Ticket(payload, _) => tracing::info!( @@ -691,7 +691,7 @@ async fn handle_client_query_inner( let span = tracing::info_span!( target: reports::INDEXER_QUERY_TARGET, "indexer_query", - indexer = %selection.indexing.indexer, + indexer = ?selection.indexing.indexer, ); tokio::spawn( async move { @@ -830,7 +830,7 @@ async fn handle_indexer_query_inner( tracing::info!( target: reports::INDEXER_QUERY_TARGET, - allocation = allocation.to_string(), + allocation = format!("{:?}", allocation), ); let response = result?; From af409a684454b12181de2875a03afa852ad67ef5 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 28 Aug 2023 13:35:06 -0400 Subject: [PATCH 2/2] fmt --- graph-gateway/src/client_query.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/graph-gateway/src/client_query.rs b/graph-gateway/src/client_query.rs index fc527489..dd261726 100644 --- a/graph-gateway/src/client_query.rs +++ b/graph-gateway/src/client_query.rs @@ -828,10 +828,7 @@ async fn handle_indexer_query_inner( let allocation = Address::from_slice(&receipt[0..20]); - tracing::info!( - target: reports::INDEXER_QUERY_TARGET, - allocation = format!("{:?}", allocation), - ); + tracing::info!(target: reports::INDEXER_QUERY_TARGET, ?allocation); let response = result?; if response.status != StatusCode::OK.as_u16() {