Skip to content

Commit

Permalink
build(decoder): replace simple-log with tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Oct 30, 2024
1 parent ffd380e commit 9ddc6d6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 89 deletions.
85 changes: 0 additions & 85 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ rustls = { version = "0.23.12", features = ["ring"] }
serde = "1.0.208"
serde_derive = "1.0.208"
serde_json = "1.0.127"
simple-log = "1.6.0"
ssz_types = "0.6"
tempfile = "3.0"
thiserror = "1.0.63"
Expand Down
1 change: 0 additions & 1 deletion crates/flat-files-decoder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ rayon.workspace = true
reth-primitives.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
simple-log.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full"] }
tracing.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/flat-files-decoder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ use dbin::{DbinFile, DbinFileError};
use firehose_protos::ethereum_v2::Block;
use headers::HeaderRecordWithNumber;
use prost::Message;
use simple_log::log;
use std::{
fs::{self, File},
io::{BufReader, Cursor, Read, Write},
path::PathBuf,
};
use tokio::join;
use tracing::error;
use zstd::stream::decode_all;

const MERGE_BLOCK: usize = 15537393;
Expand Down Expand Up @@ -328,7 +328,7 @@ where
tokio::task::spawn_blocking(move || match check(&block_clone) {
Ok(_) => {}
Err(err) => {
log::error!("{}", err);
error!("{}", err);
}
})
}
Expand Down

0 comments on commit 9ddc6d6

Please sign in to comment.