Verified Commit 5e0865fe authored by Jim Newsome's avatar Jim Newsome
Browse files

Only tail tor errors, not warnings

parent ccd7272e
......@@ -220,7 +220,8 @@ run-sim:
- echo "Log [sim]debug file $CI_PROJECT_DIR/jobs/tornet/tor-trace.txt" >> jobs/tornet/conf/tor.exitonly.torrc
# Record all warnings and errors
- echo "Log warn file $CI_PROJECT_DIR/jobs/tornet/tor-warn.txt" >> jobs/tornet/conf/tor.common.torrc
- echo "Log warn-warn file $CI_PROJECT_DIR/jobs/tornet/tor-warn.txt" >> jobs/tornet/conf/tor.common.torrc
- echo "Log err file $CI_PROJECT_DIR/jobs/tornet/tor-err.txt" >> jobs/tornet/conf/tor.common.torrc
- 'sed -i ''s/stop_time:.*/stop_time: ''"$SIM_TIME/" jobs/tornet/shadow.config.yaml'
......@@ -231,7 +232,7 @@ run-sim:
# Start monitoring in background
- $CI_PROJECT_DIR/monitor.sh $CI_PROJECT_DIR/jobs/tornet &
- "tail -F $CI_PROJECT_DIR/jobs/tornet/shadow.log | grep -E 'WARN|ERR' | grep -v 'we only support AF_INET' | grep -v -E 'Ignoring `sigaction` for signal (31|11)' | sed 's/^/shadow.log: /' &"
- "tail -F $CI_PROJECT_DIR/jobs/tornet/tor-warn.txt | sed 's/^/tor-warn: /' &"
- "tail -F $CI_PROJECT_DIR/jobs/tornet/tor-err.txt | sed 's/^/tor-err: /' &"
- ulimit -c unlimited
# - PARALLELISM=$((`nproc` / 2))
......@@ -265,6 +266,7 @@ run-sim:
- jobs/tornet/shadow.log.warn
- jobs/tornet/tor-trace.txt
- jobs/tornet/tor-warn.txt
- jobs/tornet/tor-err.txt
- jobs/tornet/sysinfo
exclude:
- jobs/tornet/conf/atlas*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment