From ea1fa33ca9e08f069c0f8ccf327c72dad4998d56 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Thu, 22 Aug 2024 14:04:21 +0300 Subject: [PATCH] fix: Reduce log level for QNS `transfer` and `blackhole` These are just way too noisy otherwise, making artifact download slow. --- qns/interop.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qns/interop.sh b/qns/interop.sh index c83dd6552d..24dc6040ed 100755 --- a/qns/interop.sh +++ b/qns/interop.sh @@ -9,11 +9,18 @@ export PATH="${PATH}:/neqo/bin" [ -n "$TESTCASE" ] [ -n "$QLOGDIR" ] +if [[ "$TESTCASE" == blackhole ]] || [[ "$TESTCASE" == transfer ]]; then + # These tests generate way too much output with a "debug" log level. + LOG_LEVEL=info +else + LOG_LEVEL=debug +fi + case "$ROLE" in client) /wait-for-it.sh sim:57832 -s -t 30 # shellcheck disable=SC2086 - RUST_LOG=debug RUST_BACKTRACE=1 neqo-client --cc cubic --qns-test "$TESTCASE" \ + RUST_LOG=$LOG_LEVEL RUST_BACKTRACE=1 neqo-client --cc cubic --qns-test "$TESTCASE" \ --qlog-dir "$QLOGDIR" --output-dir /downloads $REQUESTS 2> >(tee -i -a "/logs/$ROLE.log" >&2) ;; @@ -27,7 +34,7 @@ server) -name "$CERT" -passout pass: -out "$P12CERT" pk12util -d "sql:$DB" -i "$P12CERT" -W '' certutil -L -d "sql:$DB" -n "$CERT" - RUST_LOG=debug RUST_BACKTRACE=1 neqo-server --cc cubic --qns-test "$TESTCASE" \ + RUST_LOG=$LOG_LEVEL RUST_BACKTRACE=1 neqo-server --cc cubic --qns-test "$TESTCASE" \ --qlog-dir "$QLOGDIR" -d "$DB" -k "$CERT" '[::]:443' 2> >(tee -i -a "/logs/$ROLE.log" >&2) ;;