mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-10 00:30:37 +08:00
fix(NET-312): increase log levels for verbose logs (#2403)
This commit is contained in:
parent
6c2582651c
commit
9787ce6ae8
2 changed files with 3 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ import (
|
||||||
"github.com/gravitl/netmaker/models"
|
"github.com/gravitl/netmaker/models"
|
||||||
"github.com/gravitl/netmaker/servercfg"
|
"github.com/gravitl/netmaker/servercfg"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
|
"golang.org/x/exp/slog"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -123,7 +124,7 @@ func GetPeerUpdateForHost(ctx context.Context, network string, host *models.Host
|
||||||
// endpoint detection always comes from the server
|
// endpoint detection always comes from the server
|
||||||
hostPeerUpdate.Host.EndpointDetection = servercfg.EndpointDetectionEnabled()
|
hostPeerUpdate.Host.EndpointDetection = servercfg.EndpointDetectionEnabled()
|
||||||
|
|
||||||
logger.Log(1, "peer update for host", host.ID.String())
|
slog.Debug("peer update for host", "hostId", host.ID.String())
|
||||||
peerIndexMap := make(map[string]int)
|
peerIndexMap := make(map[string]int)
|
||||||
for _, nodeID := range host.Nodes {
|
for _, nodeID := range host.Nodes {
|
||||||
nodeID := nodeID
|
nodeID := nodeID
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ func UpdateMetrics(client mqtt.Client, msg mqtt.Message) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
slog.Info("updated node metrics", "id", id)
|
slog.Debug("updated node metrics", "id", id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue