Skip to content

Commit

Permalink
fix: Reduce log level for QNS transfer and blackhole
Browse files Browse the repository at this point in the history
These are just way too noisy otherwise, making artifact download slow.
  • Loading branch information
larseggert committed Aug 22, 2024
1 parent 43ce605 commit ea1fa33
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions qns/interop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
;;

Expand All @@ -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)
;;

Expand Down

0 comments on commit ea1fa33

Please sign in to comment.