From c5fee63b3157d411a016d8622dc47a34881b02c6 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 29 Jun 2022 18:26:52 +0000 Subject: [PATCH] debug log --- web3-proxy/src/frontend/errors.rs | 1 - web3-proxy/src/frontend/mod.rs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web3-proxy/src/frontend/errors.rs b/web3-proxy/src/frontend/errors.rs index 3ce04ced..3e08f4c5 100644 --- a/web3-proxy/src/frontend/errors.rs +++ b/web3-proxy/src/frontend/errors.rs @@ -4,7 +4,6 @@ use tracing::warn; use crate::jsonrpc::JsonRpcForwardedResponse; -/// TODO: pretty 404 page? or us a json error fine? pub async fn handler_404() -> impl IntoResponse { let err = anyhow::anyhow!("nothing to see here"); diff --git a/web3-proxy/src/frontend/mod.rs b/web3-proxy/src/frontend/mod.rs index 36cebcf7..cc62fd4f 100644 --- a/web3-proxy/src/frontend/mod.rs +++ b/web3-proxy/src/frontend/mod.rs @@ -10,6 +10,7 @@ use axum::{ }; use std::net::SocketAddr; use std::sync::Arc; +use tracing::debug; use crate::app::Web3ProxyApp; @@ -33,7 +34,7 @@ pub async fn run(port: u16, proxy_app: Arc) -> anyhow::Result<()> // run our app with hyper // `axum::Server` is a re-export of `hyper::Server` let addr = SocketAddr::from(([0, 0, 0, 0], port)); - tracing::info!("listening on port {}", addr); + debug!("listening on port {}", port); axum::Server::bind(&addr) .serve(app.into_make_service()) .await