PAPI: Fix PyLint errors 23/20123/2
authorTibor Frank <tifrank@cisco.com>
Fri, 14 Jun 2019 06:31:18 +0000 (08:31 +0200)
committerPeter Mikus <pmikus@cisco.com>
Fri, 14 Jun 2019 07:56:00 +0000 (07:56 +0000)
Change-Id: Ieaafbb111f4c3aea9b577c2ab31ca5162400ac46
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/libraries/python/Memif.py
resources/libraries/python/VhostUser.py

index 71c476f..53fbcef 100644 (file)
@@ -13,9 +13,9 @@
 
 """Memif interface library."""
 
-import logging
 
 from enum import IntEnum
+from robot.api import logger
 
 from resources.libraries.python.topology import NodeType, Topology
 from resources.libraries.python.PapiExecutor import PapiExecutor
@@ -54,7 +54,7 @@ class Memif(object):
                 L2Util.bin_to_mac(item["memif_details"]["hw_addr"])
             data.append(item)
 
-        logging.debug("MEMIF data:\n{data}".format(data=data))
+        logger.debug("MEMIF data:\n{data}".format(data=data))
 
         return data
 
index eb004b4..0c7a79e 100644 (file)
@@ -13,7 +13,7 @@
 
 """Vhost-user interfaces library."""
 
-import logging
+from robot.api import logger
 
 from resources.libraries.python.PapiExecutor import PapiExecutor
 from resources.libraries.python.topology import NodeType, Topology
@@ -45,7 +45,7 @@ class VhostUser(object):
                 item[key]["sock_filename"].rstrip('\x00')
             data.append(item)
 
-        logging.debug("VhostUser data:\n{data}".format(data=data))
+        logger.debug("VhostUser data:\n{data}".format(data=data))
 
         return data
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.