Skip to content

Commit 0296ca1

Browse files
committed
feat: Migrate from log to tracing
Signed-off-by: Dylan Kilkenny <[email protected]>
1 parent 25b453f commit 0296ca1

File tree

73 files changed

+1886
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1886
-89
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ panic = "unwind"
1919
aws-config = { version = "1.6.3", features = ["behavior-version-latest"] }
2020
aws-sdk-kms = "1.75.0"
2121
actix-web = "4"
22-
log = "0.4"
2322
tracing = "0.1"
24-
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "tracing-log"] }
23+
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
2524
tracing-error = { version = "0.2" }
2625
tracing-appender = "0.2"
2726
tracing-actix-web = "0.7"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2025-09-16T19:13:10.325869Z INFO logging configured mode=file format=compact
2+
2025-09-16T19:13:10.326396Z INFO === OpenZeppelin Relayer Service Starting ===
3+
2025-09-16T19:13:10.326409Z INFO 🚀 Service: openzeppelin-relayer v1.1.0
4+
2025-09-16T19:13:10.326443Z INFO 🦀 Rust Version: 1.86
5+
2025-09-16T19:13:10.326448Z INFO 💻 Platform: macos
6+
2025-09-16T19:13:10.326451Z INFO 💻 Architecture: aarch64
7+
2025-09-16T19:13:10.326560Z INFO 📁 Working Directory: /Users/dylan/github/openzeppelin-relayer/docs
8+
2025-09-16T19:13:10.326571Z INFO 🔧 Log Level: info
9+
2025-09-16T19:13:10.326580Z INFO 🕒 Started at: 2025-09-16 19:13:10 UTC
10+
2025-09-16T19:13:10.326604Z INFO ℹ️ Visit the Relayer documentation for more information https://docs.openzeppelin.com/relayer/

src/bootstrap/config_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::{
1818
};
1919
use color_eyre::{eyre::WrapErr, Report, Result};
2020
use futures::future::try_join_all;
21-
use log::info;
21+
use tracing::info;
2222

2323
/// Process all plugins from the config file and store them in the repository.
2424
async fn process_plugins<J, RR, TR, NR, NFR, SR, TCR, PR>(

src/bootstrap/initialize_app_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ use crate::{
1515
};
1616
use actix_web::web;
1717
use color_eyre::Result;
18-
use log::warn;
1918
use std::sync::Arc;
19+
use tracing::warn;
2020

2121
pub struct RepositoryCollection {
2222
pub relayer: Arc<RelayerRepositoryStorage>,

src/bootstrap/initialize_relayers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use actix_web::web::ThinData;
1111

1212
use color_eyre::{eyre::WrapErr, Report, Result};
1313
use futures::future::try_join_all;
14-
use log::info;
14+
use tracing::info;
1515

1616
async fn initialize_relayer(
1717
relayer_id: String,

src/bootstrap/initialize_workers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ use actix_web::web::ThinData;
1515
use apalis::{layers::ErrorHandlingLayer, prelude::*};
1616
use apalis_cron::CronStream;
1717
use eyre::Result;
18-
use log::{error, info};
1918
use std::{str::FromStr, time::Duration};
2019
use tokio::signal::unix::SignalKind;
20+
use tracing::{error, info};
2121

2222
// Review and fine tune configuration for the workers
2323
const DEFAULT_CONCURRENCY: usize = 2;

src/domain/relayer/evm/evm_relayer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use crate::{
4848
};
4949
use async_trait::async_trait;
5050
use eyre::Result;
51-
use log::{debug, info, warn};
51+
use tracing::{debug, info, warn};
5252

5353
use super::{
5454
create_error_response, create_success_response, map_provider_error, EvmTransactionValidator,

src/domain/relayer/solana/dex/jupiter_swap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use crate::services::{
1818
SolanaSigner, SwapRequest,
1919
};
2020
use async_trait::async_trait;
21-
use log::info;
2221
use solana_sdk::transaction::VersionedTransaction;
22+
use tracing::info;
2323

2424
pub struct JupiterSwapDex<P, S, J>
2525
where

src/domain/relayer/solana/dex/jupiter_ultra.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use crate::services::{
1717
UltraOrderRequest,
1818
};
1919
use async_trait::async_trait;
20-
use log::info;
2120
use solana_sdk::transaction::VersionedTransaction;
21+
use tracing::info;
2222

2323
pub struct JupiterUltraDex<S, J>
2424
where

0 commit comments

Comments
 (0)