mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-06-05 04:43:44 +02:00
device: use LogLevelError for benchmarking
This keeps the output minimal and focused on the benchmark results. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
cdaf4e9a76
commit
8a30415555
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,11 @@ NextAttempt:
|
||||||
} else {
|
} else {
|
||||||
p.ip = net.ParseIP("1.0.0.2")
|
p.ip = net.ParseIP("1.0.0.2")
|
||||||
}
|
}
|
||||||
p.dev = NewDevice(p.tun.TUN(), NewLogger(LogLevelDebug, fmt.Sprintf("dev%d: ", i)))
|
level := LogLevelDebug
|
||||||
|
if _, ok := tb.(*testing.B); ok && !testing.Verbose() {
|
||||||
|
level = LogLevelError
|
||||||
|
}
|
||||||
|
p.dev = NewDevice(p.tun.TUN(), NewLogger(level, fmt.Sprintf("dev%d: ", i)))
|
||||||
p.dev.Up()
|
p.dev.Up()
|
||||||
if err := p.dev.IpcSetOperation(cfg[i]); err != nil {
|
if err := p.dev.IpcSetOperation(cfg[i]); err != nil {
|
||||||
// genConfigs attempted to pick ports that were free.
|
// genConfigs attempted to pick ports that were free.
|
||||||
|
|
Loading…
Add table
Reference in a new issue