Skip to content

Commit

Permalink
add debug info for NET-1608
Browse files Browse the repository at this point in the history
  • Loading branch information
yabinma committed Sep 24, 2024
1 parent 2e0d709 commit 3ccfc3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/mqhandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ func HostPeerUpdate(client mqtt.Client, msg mqtt.Message) {
}
}
config.UpdateHostPeers(peerUpdate.Peers)
slog.Error("peerUpdate.Peers", "Debug", peerUpdate.Peers)
slog.Error("peerUpdate.ReplacePeers", "Debug", peerUpdate.ReplacePeers)
slog.Error("peerUpdate.HostNetworkInfo", "Debug", peerUpdate.HostNetworkInfo)
_ = wireguard.SetPeers(peerUpdate.ReplacePeers)
if len(peerUpdate.EgressRoutes) > 0 {
wireguard.SetEgressRoutes(peerUpdate.EgressRoutes)
Expand Down
1 change: 1 addition & 0 deletions wireguard/wireguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func SetPeers(replace bool) error {
ReplacePeers: replace,
Peers: peers,
}
slog.Error("peers in SetPeers", "Debug", peers)
return apply(&config)
}

Expand Down

0 comments on commit 3ccfc3a

Please sign in to comment.