From 642c7824a787ef1d47627c36219cabb1312b3b63 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 8 Aug 2021 17:37:04 +0100 Subject: [PATCH] Add trace log for machine failing to parce ip in toNode --- machine.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machine.go b/machine.go index f2745c0..4c7e594 100644 --- a/machine.go +++ b/machine.go @@ -72,6 +72,10 @@ func (m Machine) toNode() (*tailcfg.Node, error) { addrs := []netaddr.IPPrefix{} ip, err := netaddr.ParseIPPrefix(fmt.Sprintf("%s/32", m.IPAddress)) if err != nil { + log.Trace(). + Str("func", "toNode"). + Str("ip", m.IPAddress). + Msgf("Failed to parse IP Prefix from IP: %s", m.IPAddress) return nil, err } addrs = append(addrs, ip) // missing the ipv6 ?