Skip to content

Commit 30875ea

Browse files
committed
adding the logs here
1 parent be036c0 commit 30875ea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/tutorials/run_agent_test.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,19 @@ run_test() {
272272
return 0
273273
else
274274
echo -e "${RED}❌ Tests failed for ${name}${NC}"
275+
276+
# Print agent logs to help with debugging
277+
local logfile="/tmp/agentex-${name}.log"
278+
if [[ -f "$logfile" ]]; then
279+
echo ""
280+
echo -e "${YELLOW}📋 Agent logs for debugging:${NC}"
281+
echo "----------------------------------------"
282+
tail -50 "$logfile"
283+
echo "----------------------------------------"
284+
else
285+
echo -e "${YELLOW}⚠️ No agent log file found at: $logfile${NC}"
286+
fi
287+
275288
return 1
276289
fi
277290
}

0 commit comments

Comments
 (0)