It is a library function, so logging of any errors should be left to the caller. We also get rid of a logged warning which contained the complete data structure returned by netlink.LinkByName. So this function now does no logging at all. Which is how it should be.