fix: wireguard health_check error + logs page ALL service + rotate confirmation

- WireGuardManager.test_connectivity: make peer_ip optional so health_check
  can call it without args (was logging ERROR on every health poll)
- Logs page: add ALL option to service selector (uses search across all services)
- Logs page: show service tag on each log line when in ALL/search mode
- Logs page: require window.confirm before rotating logs to prevent accidental data loss

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-21 01:47:41 -04:00
parent 67ddc97795
commit 50f2200b45
2 changed files with 13 additions and 7 deletions
+5 -2
View File
@@ -507,8 +507,11 @@ class WireGuardManager(BaseServiceManager):
except Exception as e:
return self.handle_error(e, 'get_status')
def test_connectivity(self, peer_ip: str) -> Dict[str, Any]:
"""Ping a peer IP and return results."""
def test_connectivity(self, peer_ip: str = None) -> Dict[str, Any]:
"""Ping a peer IP and return results. Called with no args from health_check."""
if not peer_ip:
status = self.get_status()
return {'reachable': status.get('running', False), 'status': status.get('status')}
try:
result = subprocess.run(
['ping', '-c', '1', '-W', '2', peer_ip],