@@ -179,7 +179,7 @@ func NewConn(options *Options) (conn *Conn, err error) {
179
179
wireguardEngine = wgengine .NewWatchdog (wireguardEngine )
180
180
wireguardEngine .SetDERPMap (options .DERPMap )
181
181
netMapCopy := * netMap
182
- options .Logger .Debug (context .Background (), "updating network map" , slog . F ( "net_map" , netMapCopy ) )
182
+ options .Logger .Debug (context .Background (), "updating network map" )
183
183
wireguardEngine .SetNetworkMap (& netMapCopy )
184
184
185
185
localIPSet := netipx.IPSetBuilder {}
@@ -333,7 +333,7 @@ func (c *Conn) SetDERPMap(derpMap *tailcfg.DERPMap) {
333
333
c .wireguardEngine .SetDERPMap (derpMap )
334
334
c .netMap .DERPMap = derpMap
335
335
netMapCopy := * c .netMap
336
- c .logger .Debug (context .Background (), "updating network map" , slog . F ( "net_map" , netMapCopy ) )
336
+ c .logger .Debug (context .Background (), "updating network map" )
337
337
c .wireguardEngine .SetNetworkMap (& netMapCopy )
338
338
}
339
339
@@ -344,7 +344,7 @@ func (c *Conn) RemoveAllPeers() error {
344
344
c .netMap .Peers = []* tailcfg.Node {}
345
345
c .peerMap = map [tailcfg.NodeID ]* tailcfg.Node {}
346
346
netMapCopy := * c .netMap
347
- c .logger .Debug (context .Background (), "updating network map" , slog . F ( "net_map" , netMapCopy ) )
347
+ c .logger .Debug (context .Background (), "updating network map" )
348
348
c .wireguardEngine .SetNetworkMap (& netMapCopy )
349
349
cfg , err := nmcfg .WGCfg (c .netMap , Logger (c .logger .Named ("wgconfig" )), netmap .AllowSingleHosts , "" )
350
350
if err != nil {
@@ -428,7 +428,7 @@ func (c *Conn) UpdateNodes(nodes []*Node, replacePeers bool) error {
428
428
c .netMap .Peers = append (c .netMap .Peers , peer .Clone ())
429
429
}
430
430
netMapCopy := * c .netMap
431
- c .logger .Debug (context .Background (), "updating network map" , slog . F ( "net_map" , netMapCopy ) )
431
+ c .logger .Debug (context .Background (), "updating network map" )
432
432
c .wireguardEngine .SetNetworkMap (& netMapCopy )
433
433
cfg , err := nmcfg .WGCfg (c .netMap , Logger (c .logger .Named ("wgconfig" )), netmap .AllowSingleHosts , "" )
434
434
if err != nil {
0 commit comments