Skip to content

Commit

Permalink
fix(common): replace log with tracing (#88)
Browse files Browse the repository at this point in the history
Previously, all logs emitted from the common package would not appear.
  • Loading branch information
Theodus authored Nov 8, 2023
1 parent b595cda commit 64e9dc5
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ eventuals = "0.6.7"
faux = { version = "0.1.10", optional = true }
keccak-hash = "0.10.0"
lazy_static = "1.4.0"
log = "0.4.20"
lru = "0.11.1"
once_cell = "1.17"
prometheus = "0.13.3"
Expand All @@ -34,6 +33,7 @@ tokio = { version = "1.32.0", features = ["full", "macros", "rt"] }
toolshed = { git = "https://github.com/edgeandnode/toolshed", branch = "main", features = [
"graphql",
] }
tracing = "0.1.34"
graphql = { git = "https://github.com/edgeandnode/toolshed", branch = "main" }
tap_core = "0.6.0"

Expand Down
2 changes: 1 addition & 1 deletion common/src/allocations/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use std::{collections::HashMap, time::Duration};
use alloy_primitives::Address;
use anyhow::anyhow;
use eventuals::{timer, Eventual, EventualExt};
use log::warn;
use serde::Deserialize;
use serde_json::json;
use tokio::time::sleep;
use tracing::warn;

use crate::prelude::SubgraphClient;

Expand Down
2 changes: 1 addition & 1 deletion common/src/attestations/dispute_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use std::time::Duration;

use alloy_primitives::Address;
use eventuals::{timer, Eventual, EventualExt};
use log::warn;
use serde::Deserialize;
use serde_json::json;
use tokio::time::sleep;
use tracing::warn;

use crate::subgraph_client::SubgraphClient;

Expand Down
2 changes: 1 addition & 1 deletion common/src/attestations/signers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
use alloy_primitives::Address;
use ethers_core::types::U256;
use eventuals::{join, Eventual, EventualExt};
use log::warn;
use std::collections::HashMap;
use std::sync::Arc;
use tokio::sync::Mutex;
use tracing::warn;

use crate::prelude::{Allocation, AttestationSigner};

Expand Down
2 changes: 1 addition & 1 deletion common/src/escrow_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use alloy_primitives::Address;
use anyhow::Result;
use ethers_core::types::U256;
use eventuals::{timer, Eventual, EventualExt};
use log::{error, warn};
use serde::Deserialize;
use serde_json::json;
use tokio::time::sleep;
use tracing::{error, warn};

use crate::prelude::SubgraphClient;

Expand Down
2 changes: 1 addition & 1 deletion common/src/indexer_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
fmt::{self, Display},
};

use log::warn;
use tracing::warn;

use crate::metrics;

Expand Down
2 changes: 1 addition & 1 deletion common/src/subgraph_client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
use anyhow::anyhow;
use eventuals::Eventual;
use graphql::http::Response;
use log::warn;
use reqwest::{header, Url};
use serde::de::Deserialize;
use serde_json::Value;
use toolshed::thegraph::DeploymentId;
use tracing::warn;

use super::monitor::{monitor_deployment_status, DeploymentStatus};

Expand Down
2 changes: 1 addition & 1 deletion common/src/subgraph_client/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use std::time::Duration;

use eventuals::{timer, Eventual, EventualExt};
use graphql::http::Response;
use log::warn;
use reqwest::{header, Url};
use serde::Deserialize;
use serde_json::{json, Value};
use tokio::time::sleep;
use toolshed::thegraph::DeploymentId;
use tracing::warn;

#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
Expand Down
2 changes: 1 addition & 1 deletion common/src/tap_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use alloy_sol_types::Eip712Domain;
use anyhow::anyhow;
use ethers_core::types::U256;
use eventuals::Eventual;
use log::error;
use sqlx::{types::BigDecimal, PgPool};
use std::{collections::HashMap, sync::Arc};
use tap_core::tap_manager::SignedReceipt;
use tracing::error;

use crate::prelude::Allocation;

Expand Down

0 comments on commit 64e9dc5

Please sign in to comment.