mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
device: do not log on idempotent device state change
Part of being actually idempotent is that we shouldn't penalize code that takes advantage of this property with a log splat. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6ac1240821
commit
d6e76fdbd6
@ -160,7 +160,6 @@ func (device *Device) changeState(want deviceState) {
|
||||
}
|
||||
switch want {
|
||||
case old:
|
||||
device.log.Verbosef("Interface already in state %s", want)
|
||||
return
|
||||
case deviceStateUp:
|
||||
atomic.StoreUint32(&device.state.state, uint32(deviceStateUp))
|
||||
|
Loading…
Reference in New Issue
Block a user