From 5d1ea5e4407b11a3595b894f1b98df2b947e047e Mon Sep 17 00:00:00 2001 From: tersec Date: Wed, 9 Sep 2020 13:08:21 +0000 Subject: [PATCH] match log filenames more precisely for logtrace analysis (#1617) * match log filenames more precisely for logtrace analysis --- scripts/launch_local_testnet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/launch_local_testnet.sh b/scripts/launch_local_testnet.sh index 85bb66d6b..27e69d38c 100755 --- a/scripts/launch_local_testnet.sh +++ b/scripts/launch_local_testnet.sh @@ -294,7 +294,7 @@ dump_logs() { dump_logtrace() { if [[ "$ENABLE_LOGTRACE" == "1" ]]; then - find "${DATA_DIR}" -maxdepth 1 -type f -name 'log*.txt' | sed -e"s/${DATA_DIR}\//--nodes=/" | sort | xargs ./build/logtrace asr --log-dir="${DATA_DIR}" || true + find "${DATA_DIR}" -maxdepth 1 -type f -regex '.*/log[0-9]+.txt' | sed -e"s/${DATA_DIR}\//--nodes=/" | sort | xargs ./build/logtrace asr --log-dir="${DATA_DIR}" || true fi }