From 2b6e86d302fc835b9fb90fd4461c245550477188 Mon Sep 17 00:00:00 2001 From: Ryo Kawaguchi Date: Thu, 18 Apr 2024 23:54:56 +0900 Subject: [PATCH] Suppress more logs unless --verbose is specified --- docker-tests/run-docker-tests.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-tests/run-docker-tests.sh b/docker-tests/run-docker-tests.sh index ca7a8c3..1eb4167 100755 --- a/docker-tests/run-docker-tests.sh +++ b/docker-tests/run-docker-tests.sh @@ -23,6 +23,8 @@ while [[ $# -gt 0 ]]; do --verbose) INNERNET_ARGS="$INNERNET_ARGS -vvv" CLIENT_ARGS="$CLIENT_ARGS --verbose" + SERVER_RUST_LOG="debug" + CLIENT_RUST_LOG="trace" shift ;; --help) @@ -68,7 +70,7 @@ SERVER_CONTAINER=$(cmd docker create -it --rm \ --network "$NETWORK" \ --ip 172.18.1.1 \ --volume /dev/net/tun:/dev/net/tun \ - --env RUST_LOG=debug \ + --env RUST_LOG="$SERVER_RUST_LOG" \ --env INNERNET_ARGS="$INNERNET_ARGS" \ --cap-add NET_ADMIN \ innernet) @@ -85,7 +87,7 @@ create_peer_docker() { --ip $IP \ --volume /dev/net/tun:/dev/net/tun \ --cap-add NET_ADMIN \ - --env RUST_LOG=trace \ + --env RUST_LOG="$CLIENT_RUST_LOG" \ --env INTERFACE=evilcorp \ --env INNERNET_ARGS="$INNERNET_ARGS" \ --env CLIENT_ARGS="$CLIENT_ARGS" \ @@ -210,4 +212,4 @@ for func in $(declare -F | awk '{print $3}'); do done echo -info "test succeeded." +info "Test succeeded."