Skip to content

Commit

Permalink
Suppress more logs unless --verbose is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
skywhale committed Apr 22, 2024
1 parent 34e703f commit 2b6e86d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker-tests/run-docker-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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" \
Expand Down Expand Up @@ -210,4 +212,4 @@ for func in $(declare -F | awk '{print $3}'); do
done

echo
info "test succeeded."
info "Test succeeded."

0 comments on commit 2b6e86d

Please sign in to comment.