A big bunch of golang-lint fixes

This commit is contained in:
Juan Font
2022-11-25 15:29:45 +00:00
parent 358ed64b98
commit b5f1ae3d90
5 changed files with 40 additions and 17 deletions

View File

@@ -53,7 +53,15 @@ func (h *Headscale) handlePollCommon(
}
// update routes with peer information
h.EnableAutoApprovedRoutes(machine)
err = h.EnableAutoApprovedRoutes(machine)
if err != nil {
log.Error().
Caller().
Bool("noise", isNoise).
Str("machine", machine.Hostname).
Err(err).
Msg("Error running auto approved routes")
}
}
// From Tailscale client: