From 830b3e3b38c7c8f9cd301ed9770c86333027305e Mon Sep 17 00:00:00 2001 From: Augusto Hack Date: Tue, 26 Nov 2024 18:33:25 +0100 Subject: [PATCH] introduce logging (#413) --- Cargo.lock | 1 + mp2-v1/Cargo.toml | 1 + mp2-v1/src/indexing/row.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 7cd7e7fc8..3083a9968 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3798,6 +3798,7 @@ dependencies = [ "testfile", "tokio", "tokio-postgres", + "tracing", "verifiable-db", ] diff --git a/mp2-v1/Cargo.toml b/mp2-v1/Cargo.toml index eca166653..1c67ebe08 100644 --- a/mp2-v1/Cargo.toml +++ b/mp2-v1/Cargo.toml @@ -31,6 +31,7 @@ bb8 = "0.8.5" bb8-postgres = "0.8.1" tokio-postgres = "0.7.12" futures = "0.3.30" +tracing = "0.1" [dev-dependencies] alloy.workspace = true diff --git a/mp2-v1/src/indexing/row.rs b/mp2-v1/src/indexing/row.rs index 5ec8ce051..04910f9ec 100644 --- a/mp2-v1/src/indexing/row.rs +++ b/mp2-v1/src/indexing/row.rs @@ -281,7 +281,7 @@ impl< .unwrap_or(empty_poseidon_hash().to_bytes().try_into().unwrap()) ).to_fields()) .collect::>(); - println!( + tracing::info!( "\n--RYHOPE aggregate() Row : id {:?}, value {:?} (empty hash{}) left_hash {:?}, right_hash {:?} min {:?}, max {:?}, tree_root_hash {:?}", self.secondary_index_column, self.secondary_index_value(),