Skip to content

Commit 2cf0c18

Browse files
committed
ipn/wg: m error log
1 parent 91ed682 commit 2cf0c18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

intra/ipn/wgproxy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,12 @@ func wgIfConfigOf(id string, txtptr *string) (opts wgifopts, err error) {
582582
}
583583
}
584584
finalizeMH(opts.eps, currentPeer)
585-
log.D("proxy: wg: %s; eps: %d; amnezia: %s", id, opts.eps.Len(), opts.amnezia)
586585
*txtptr = pcfg.String()
587586
if err == nil && len(opts.ifaddrs) <= 0 || opts.dns.Len() <= 0 || opts.mtu <= NOMTU {
588587
err = errProxyConfig
589588
}
589+
loged(err)("proxy: wg: %s; addr: %d, dns: %d, mtu: %d, eps: %d; amnezia: %s",
590+
id, len(opts.ifaddrs), opts.dns.Len(), opts.mtu, opts.eps.Len(), opts.amnezia)
590591
return
591592
}
592593

0 commit comments

Comments
 (0)