Debug: 添加详细日志以诊断设备列表和数据显示问题
- 添加设备时记录接口和邻居数量 - 获取设备列表时记录返回数量 - 数据库保存成功/失败都有明确日志 - 创建API测试脚本便于调试
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
@echo off
|
||||
chcp 65001 >nul 2>&1
|
||||
echo ========================================
|
||||
echo Testing API Endpoints
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
echo [1] Testing /api/devices endpoint...
|
||||
curl -s http://localhost:8080/api/devices | python -m json.tool
|
||||
echo.
|
||||
|
||||
echo [2] Testing /api/topology endpoint...
|
||||
curl -s http://localhost:8080/api/topology | python -m json.tool
|
||||
echo.
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user