From e26a126cba39c0d5d201b61466b49701c2726a5c Mon Sep 17 00:00:00 2001 From: mzz <2017@duck.com> Date: Fri, 7 Jul 2023 21:07:39 +0800 Subject: [PATCH] chore: suppress useless LinkSubscribe error (#181) --- control/control_plane_core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/control_plane_core.go b/control/control_plane_core.go index 4d487d1..8f402c2 100644 --- a/control/control_plane_core.go +++ b/control/control_plane_core.go @@ -312,7 +312,7 @@ func (c *controlPlaneCore) addLinkCb(_ifname string, rtmType uint16, cb func()) done := make(chan struct{}) if e := netlink.LinkSubscribeWithOptions(ch, done, netlink.LinkSubscribeOptions{ ErrorCallback: func(err error) { - c.log.Warnln("LinkSubscribe:", err) + c.log.Debug("LinkSubscribe:", err) }, ListExisting: true, }); e != nil {