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:
Craig Rodrigues
2023-09-02 11:09:38 -07:00
committed by Brad Fitzpatrick
parent d06a75dcd0
commit 8683ce78c2
4 changed files with 6 additions and 5 deletions

View File

@@ -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
}