From 72062816355fd10acd195e7d64da1738488ac362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Cor=C3=A9?= Date: Fri, 11 Oct 2024 11:57:56 +0200 Subject: [PATCH] Reduce noise in logs --- conan/wipe_sandbox.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conan/wipe_sandbox.sh b/conan/wipe_sandbox.sh index 340a125..db3f001 100755 --- a/conan/wipe_sandbox.sh +++ b/conan/wipe_sandbox.sh @@ -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 @@ -139,7 +143,6 @@ EOM fi fi - # If anything happens, unlock the sandbox trap "_on_exit" EXIT