tell ethers to shut up

This commit is contained in:
Bryan Stitt 2023-04-18 20:50:35 -07:00
parent 4889c3e1ce
commit 9118117fe7
5 changed files with 8 additions and 4 deletions

@ -57,6 +57,6 @@ ENTRYPOINT ["web3_proxy_cli"]
CMD [ "--config", "/web3-proxy.toml", "proxyd" ]
# TODO: lower log level when done with prototyping
ENV RUST_LOG "warn,web3_proxy=debug,web3_proxy_cli=debug"
ENV RUST_LOG "warn,ethers_providers::rpc=off,web3_proxy=debug,web3_proxy_cli=debug"
COPY --from=builder /usr/local/bin/* /usr/local/bin/

@ -139,7 +139,7 @@ Be sure to use `--no-inline` or perf will be VERY slow
Developers can run the proxy under gdb for advanced debugging:
cargo build --release && RUST_LOG=web3_proxy=debug rust-gdb --args target/debug/web3_proxy --listen-port 7503 --rpc-config-path ./config/production-eth.toml
cargo build --release && RUST_LOG=info,web3_proxy=debug,ethers_providers::rpc=off rust-gdb --args target/debug/web3_proxy --listen-port 7503 --rpc-config-path ./config/production-eth.toml
TODO: also enable debug symbols in the release build by modifying the root Cargo.toml

@ -9,7 +9,7 @@ services:
stop_signal: SIGINT
environment:
#RUST_LOG: "info,web3_proxy=debug"
RUST_LOG: info
RUST_LOG: info,ethers_providers::rpc=off
volatile_redis:
image: redis:6.0-alpine

@ -132,6 +132,7 @@ fn main() -> anyhow::Result<()> {
"info",
"ethers=debug",
"ethers_providers=debug",
"ethers_providers::rpc=off",
"redis_rate_limit=debug",
"web3_proxy=trace",
"web3_proxy_cli=trace",

@ -341,7 +341,10 @@ mod tests {
// TODO: how should we handle logs in this?
// TODO: option for super verbose logs
std::env::set_var("RUST_LOG", "info,web3_proxy=debug");
std::env::set_var(
"RUST_LOG",
"info,ethers_providers::rpc=off,web3_proxy=debug",
);
let _ = env_logger::builder().is_test(true).try_init();