feat: use a debug logger for agent
This commit is contained in:
parent
3dca401837
commit
608fcacdb1
9 changed files with 151 additions and 79 deletions
11
agent/internal/hpagent/sender.go
Normal file
11
agent/internal/hpagent/sender.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package hpagent
|
||||
|
||||
import (
|
||||
"tailscale.com/tailcfg"
|
||||
)
|
||||
|
||||
// Sends the status to the Headplane master
|
||||
func (s *Socket) SendStatus(status map[string]*tailcfg.HostinfoView) error {
|
||||
err := s.WriteJSON(status)
|
||||
return err
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue