Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Undo WARN log workaround (#1196)
Browse files Browse the repository at this point in the history
We can configure the logs the way we want with

    RUST_LOG="info,tide=warn,net=warn"
  • Loading branch information
sveitser authored Jul 14, 2022
1 parent 6917447 commit 9b704d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eqs/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use cap_rust_sandbox::{
};

pub async fn run(opt: &EQSOptions) -> std::io::Result<()> {
tracing::warn!("Starting EQS");
tracing::info!("Starting EQS");

if !opt.temp_test_run {
let provider = get_provider_from_url(opt.rpc_url());
Expand All @@ -49,7 +49,7 @@ pub async fn run(opt: &EQSOptions) -> std::io::Result<()> {
}),
));
let toc = std::time::Instant::now();
tracing::warn!("Restored state in {:?}", toc - tic);
tracing::info!("Restored state in {:?}", toc - tic);
(state_persistence, query_result_state)
};

Expand Down
2 changes: 1 addition & 1 deletion eqs/src/eth_polling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl EthPolling {
let current_log_index = meta.log_index.as_u64();
let current_index = (current_block, current_log_index);

tracing::warn!(
tracing::info!(
"Processing block {} event {}",
current_block,
current_log_index,
Expand Down
2 changes: 1 addition & 1 deletion eqs/src/state_persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl StatePersistence {
self.atomic_store.commit_version().unwrap();
self.state_snapshot.prune_file_entries().unwrap();
let toc = std::time::Instant::now();
tracing::warn!("Persisting state took {:?}", toc - tic);
tracing::info!("Persisting state took {:?}", toc - tic);
}

pub fn load_latest_state(&self) -> Result<QueryResultState, PersistenceError> {
Expand Down

0 comments on commit 9b704d2

Please sign in to comment.