运维与排障故障排查

日志与调试

基于日志与状态命令定位问题

日志与调试

1) 看运行日志

tail -f .downcity/logs/$(date +%F).jsonl

2) 看 plugin 状态

town plugin list

3) 看会话数据

town chat context --chat-key ctx_xxxxxxxxxxxxxxxx
town chat history --chat-key ctx_xxxxxxxxxxxxxxxx --limit 50

4) 看任务执行产物

ls -la .downcity/task/<taskId>
ls -la .downcity/task/<taskId>/<timestamp>

run.json + result.md 基本可以还原一次任务执行结果。