debug to debug level
This commit is contained in:
parent
b4afb89102
commit
212650290f
@ -4,4 +4,4 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: --config /config.toml --workers 8
|
command: --config /config.toml --workers 8
|
||||||
environment:
|
environment:
|
||||||
RUST_LOG: "web3_proxy=trace"
|
RUST_LOG: "web3_proxy=debug"
|
||||||
|
@ -111,6 +111,7 @@ impl Web3ProxyApp {
|
|||||||
self: Arc<Web3ProxyApp>,
|
self: Arc<Web3ProxyApp>,
|
||||||
request: JsonRpcRequestEnum,
|
request: JsonRpcRequestEnum,
|
||||||
) -> anyhow::Result<impl warp::Reply> {
|
) -> anyhow::Result<impl warp::Reply> {
|
||||||
|
// TODO: i don't always see this in the logs. why?
|
||||||
debug!("Received request: {:?}", request);
|
debug!("Received request: {:?}", request);
|
||||||
|
|
||||||
let response = match request {
|
let response = match request {
|
||||||
@ -122,6 +123,7 @@ impl Web3ProxyApp {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO: i don't always see this in the logs. why?
|
||||||
debug!("Forwarding response: {:?}", response);
|
debug!("Forwarding response: {:?}", response);
|
||||||
|
|
||||||
Ok(warp::reply::json(&response))
|
Ok(warp::reply::json(&response))
|
||||||
|
@ -23,12 +23,10 @@ use crate::config::{CliConfig, RpcConfig};
|
|||||||
|
|
||||||
fn main() -> anyhow::Result<()> {
|
fn main() -> anyhow::Result<()> {
|
||||||
// TODO: is there a better way to do this?
|
// TODO: is there a better way to do this?
|
||||||
if env::var("RUST_LOG").is_err() {
|
// TODO: what should the default log level be?
|
||||||
env::set_var("RUST_LOG", "web3_proxy=debug");
|
|
||||||
}
|
|
||||||
|
|
||||||
// install global collector configured based on RUST_LOG env var.
|
// install global collector configured based on RUST_LOG env var.
|
||||||
tracing_subscriber::fmt().init();
|
tracing_subscriber::fmt().compact().init();
|
||||||
// console_subscriber::init();
|
// console_subscriber::init();
|
||||||
|
|
||||||
fdlimit::raise_fd_limit();
|
fdlimit::raise_fd_limit();
|
||||||
|
Loading…
Reference in New Issue
Block a user