From d6e76fdbd6bae64a08662eb19d3634adb4881155 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 9 Feb 2021 15:25:43 +0100 Subject: 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 --- device/device.go | 1 - 1 file changed, 1 deletion(-) diff --git a/device/device.go b/device/device.go index b93ad22..895c9db 100644 --- a/device/device.go +++ b/device/device.go @@ -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)) -- cgit v1.2.3-59-g8ed1b