Skip to content

Commit

Permalink
Reduce noise in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fridim committed Oct 11, 2024
1 parent 0b8cbb9 commit 7206281
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions conan/wipe_sandbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ EOM

# check if max_retries is reached
if [ "$(get_conan_cleanup_count "${sandbox}")" -ge "${max_retries}" ]; then
echo "$(date -uIs) ${sandbox} max_retries reached, skipping for now, will retry after 24h"
# print info only once.
if [ ! -e "/tmp/${sandbox}_max_retries" ]; then
echo "$(date -uIs) ${sandbox} max_retries reached, skipping for now, will retry after 24h"
touch "/tmp/${sandbox}_max_retries"
fi
rm "${errlog}"
return 1
fi
Expand All @@ -139,7 +143,6 @@ EOM
fi
fi


# If anything happens, unlock the sandbox
trap "_on_exit" EXIT

Expand Down

0 comments on commit 7206281

Please sign in to comment.