Fix console output in logs function to prevent rich markup issues with MSBuild paths. Set markup and highlight to False for better compatibility.

This commit is contained in:
Leonid Pershin
2026-08-23 04:44:31 +03:00
parent d934fc9366
commit d06b4f4fdc
8 changed files with 200 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
sudo -n systemctl restart swarmui
sleep 40
S=$(curl -s -X POST http://127.0.0.1:7801/API/GetNewSession -H 'Content-Type: application/json' -d '{}' | sed -n 's/.*"session_id": *"\([^"]*\)".*/\1/p')
for api in AssistentListChats AssistentListTrainSamples AssistentListMemory; do
echo "--- $api ---"
curl -s -X POST "http://127.0.0.1:7801/API/$api" -H 'Content-Type: application/json' -d "{\"session_id\":\"$S\"}" | head -c 300
echo
done
echo "--- log ---"
sudo -n journalctl -u swarmui --no-pager --since '-3min' | grep -iE 'assistent|error|private dep' | tail -n 15