diff --git a/hscontrol/policy/pm.go b/hscontrol/policy/pm.go index a9de1aa13a..7b92d7719b 100644 --- a/hscontrol/policy/pm.go +++ b/hscontrol/policy/pm.go @@ -8,6 +8,7 @@ import ( "sync" "github.com/juanfont/headscale/hscontrol/types" + "github.com/rs/zerolog/log" "go4.org/netipx" "tailscale.com/tailcfg" "tailscale.com/util/deephash" @@ -161,7 +162,8 @@ func (pm *PolicyManagerV1) Tags(node *types.Node) []string { return nil } - tags, _ := pm.pol.TagsOfNode(node) + tags, invalid := pm.pol.TagsOfNode(node) + log.Debug().Strs("authorised_tags", tags).Strs("unauthorised_tags", invalid).Uint64("node.id", node.ID.Uint64()).Msg("tags provided by policy") return tags }