chore: suppress useless LinkSubscribe error (#181)

This commit is contained in:
mzz 2023-07-07 21:07:39 +08:00 committed by GitHub
parent 34dfd7adbc
commit e26a126cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {