mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-23 17:31:43 +00:00
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:
parent
a3fc5150e3
commit
c28fda864a
@ -142,7 +142,7 @@ func handlePeerAPIRelayAllocateEndpoint(h ipnlocal.PeerAPIHandler, w http.Respon
|
||||
|
||||
httpErrAndLog := func(message string, code int) {
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user