add debug log

This commit is contained in:
Maycon Santos 2024-04-14 16:43:56 +02:00
parent 56450e1b4f
commit c4ca7ef1b1

View File

@ -221,6 +221,8 @@ func (c *clientNetwork) removeRouteFromPeerAndSystem() error {
return fmt.Errorf("remove route %s from system, err: %v", c.network, err)
}
c.systemUpdated = false
} else {
log.Debugf("system is not updated for network %s, skiping removal from system route table", c.network)
}
if err := c.removeRouteFromWireguardPeer(c.chosenRoute.Peer); err != nil {