diff options
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/net.py')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/net.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/net.py b/mpm/python/usrp_mpm/periph_manager/net.py index 2df771549..4eb1890cb 100644 --- a/mpm/python/usrp_mpm/periph_manager/net.py +++ b/mpm/python/usrp_mpm/periph_manager/net.py @@ -20,10 +20,7 @@ N310 implementation module import itertools import socket from pyroute2 import IPRoute -from logging import getLogger - -LOG = getLogger(__name__) - +from ..mpmlog import get_logger def get_iface_addrs(mac_addr): """ @@ -57,7 +54,7 @@ def get_mac_addr(remote_addr): ip2 = IPRoute() addrs = ip2.get_neighbours(dst=remote_addr) if len(addrs) > 1: - LOG.warning("More than one device with the same IP address found. Picking entry at random") + get_logger('get_mac_addr').warning("More than one device with the same IP address found. Picking entry at random") if not addrs: return None return addrs[0].get_attr('NDA_LLADDR') |