feature/relayserver: use PeerAPIHandler.Logf() (#15765)

This was recently added, use it to be consistent.

Updates tailscale/corp#27502

Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
Jordan Whited 2025-04-22 10:53:58 -07:00 committed by GitHub
parent a3fc5150e3
commit c28fda864a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ func handlePeerAPIRelayAllocateEndpoint(h ipnlocal.PeerAPIHandler, w http.Respon
httpErrAndLog := func(message string, code int) { httpErrAndLog := func(message string, code int) {
http.Error(w, message, code) http.Error(w, message, code)
e.logf("peerapi: request from %v returned code %d: %s", h.RemoteAddr(), code, message) h.Logf("relayserver: request from %v returned code %d: %s", h.RemoteAddr(), code, message)
} }
if !h.PeerCaps().HasCapability(tailcfg.PeerCapabilityRelay) { if !h.PeerCaps().HasCapability(tailcfg.PeerCapabilityRelay) {