mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-12 05:37:32 +00:00
client/web, clientupdate, util/linuxfw, wgengine/magicsock: Use %v verb for errors
Replace %w verb with %v verb when logging errors. Use %w only for wrapping errors with fmt.Errorf() Fixes: #9213 Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
d06a75dcd0
commit
8683ce78c2
@@ -24,6 +24,7 @@ import (
|
||||
"go4.org/mem"
|
||||
"golang.org/x/net/ipv4"
|
||||
"golang.org/x/net/ipv6"
|
||||
|
||||
"tailscale.com/disco"
|
||||
"tailscale.com/envknob"
|
||||
"tailscale.com/health"
|
||||
@@ -1644,7 +1645,7 @@ func (c *Conn) SetPreferredPort(port uint16) {
|
||||
c.port.Store(uint32(port))
|
||||
|
||||
if err := c.rebind(dropCurrentPort); err != nil {
|
||||
c.logf("%w", err)
|
||||
c.logf("%v", err)
|
||||
return
|
||||
}
|
||||
c.resetEndpointStates()
|
||||
@@ -2276,7 +2277,7 @@ func (c *Conn) rebind(curPortFate currentPortFate) error {
|
||||
func (c *Conn) Rebind() {
|
||||
metricRebindCalls.Add(1)
|
||||
if err := c.rebind(keepCurrentPort); err != nil {
|
||||
c.logf("%w", err)
|
||||
c.logf("%v", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user