Print logs

This commit is contained in:
Andras Schmelczer 2025-03-16 21:24:28 +00:00
parent 0564885aa6
commit 84ddcaad84
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -36,6 +36,7 @@ print_failed_log() {
# Only consider non-zero exit codes as failures
if [ $exit_code -ne 0 ]; then
cat "$(pwd)/logs/log_${i}.log"
echo "Process ${pids[$i-1]} failed with exit code $exit_code. Log file: $(pwd)/logs/log_${i}.log"
return 0
else