From fe80b62415a8c1e95f6a5a63aa2fa87be3a2e7ae Mon Sep 17 00:00:00 2001 From: Petar Radovic Date: Thu, 24 Apr 2025 09:57:56 +0200 Subject: [PATCH] remove printlns --- sz-poc-offsite-2025/evm/lightnode/src/lib.rs | 2 -- sz-poc-offsite-2025/evm/lightnode/src/main.rs | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sz-poc-offsite-2025/evm/lightnode/src/lib.rs b/sz-poc-offsite-2025/evm/lightnode/src/lib.rs index 41d40e9..d14c182 100644 --- a/sz-poc-offsite-2025/evm/lightnode/src/lib.rs +++ b/sz-poc-offsite-2025/evm/lightnode/src/lib.rs @@ -1,5 +1,3 @@ -use std::ops::Range; - use nomos::{CryptarchiaInfo, HeaderId}; use reqwest::Url; use tracing::{error, info}; diff --git a/sz-poc-offsite-2025/evm/lightnode/src/main.rs b/sz-poc-offsite-2025/evm/lightnode/src/main.rs index b5f1e9e..8c92468 100644 --- a/sz-poc-offsite-2025/evm/lightnode/src/main.rs +++ b/sz-poc-offsite-2025/evm/lightnode/src/main.rs @@ -1,5 +1,6 @@ use clap::Parser; use evm_lightnode::{Credentials, NomosClient, nomos::HeaderId}; +use tracing::info; use url::Url; use std::error; @@ -36,13 +37,13 @@ async fn main() -> Result<(), Box> { let mut current_tip = HeaderId::default(); loop { let info = consensus.get_cryptarchia_info().await?; - println!("Cryptarchia Info: {:?}", info); + info!("Cryptarchia Info: {:?}", info); if info.tip != current_tip { current_tip = info.tip; - println!("New tip: {:?}", current_tip); + info!("New tip: {:?}", current_tip); let block = consensus.get_block(info.tip).await?; - println!("Block: {:?}", block); + info!("Block: {:?}", block); } tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;