Skip to content

Commit bd1a129

Browse files
committed
show logs if the agent test times out
1 parent 54996c2 commit bd1a129

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/tutorials/run_agent_test.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,14 @@ wait_for_agent_ready() {
7878
done
7979

8080
echo -e "${RED}❌ Timeout waiting for ${name} agent to be ready${NC}"
81-
echo "Check logs: tail -f $logfile"
81+
echo -e "${YELLOW}📋 Agent logs:${NC}"
82+
if [[ -f "$logfile" ]]; then
83+
echo "----------------------------------------"
84+
tail -50 "$logfile"
85+
echo "----------------------------------------"
86+
else
87+
echo "❌ Log file not found: $logfile"
88+
fi
8289
return 1
8390
}
8491

0 commit comments

Comments
 (0)