debug log

This commit is contained in:
Bryan Stitt 2022-06-29 18:26:52 +00:00
parent c8722ed7eb
commit c5fee63b31
2 changed files with 2 additions and 2 deletions

@ -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");

@ -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<Web3ProxyApp>) -> 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