control/controlclient: log Hostinfo on change

Fixes #830

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-10-19 08:30:36 -07:00
parent 7c8ca28c74
commit 22024a38c3
2 changed files with 9 additions and 7 deletions

View File

@@ -228,6 +228,8 @@ func (c *Direct) SetHostinfo(hi *tailcfg.Hostinfo) bool {
return false
}
c.hostinfo = hi.Clone()
j, _ := json.Marshal(c.hostinfo)
c.logf("HostInfo: %s", j)
return true
}