feat: remote debug log upload to gateway for LAN diagnosis

- DebugLogUpload: isolated OkHttp pool, 3s timeout, bounded queue, silent drop
- POST /debug/log on gateway: LAN-only, JSON ringbuffer (200 entries), GET to read
- Logs: app_launch, connect phases, ws events, errors (no token/audio/chat content)
- UI shows debug logging active indicator
- network_security_config: cleartext HTTP allowed for gateway host (LAN debug only)
- Gateway v0.7.1 + debug log endpoint deployed on SPARK-2

Version 0.2.5-m5-fix6
This commit is contained in:
zenord
2026-10-11 12:51:51 +08:00
parent 87f1324a68
commit 198fe51cec
6 changed files with 142 additions and 38 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
<certificates src="@raw/gateway_cert" />
</trust-anchors>
</base-config>
<domain-config cleartextTrafficPermitted="false">
<!-- LAN debug POST is permitted only for this gateway; TLS still uses its certificate. -->
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">@VOICE_SERVER_HOST@</domain>
<trust-anchors>
<certificates src="@raw/gateway_cert" />