Alter logging semantics for VPP PAPI object 21/12921/3
authorIan Wells <iawells@cisco.com>
Wed, 6 Jun 2018 13:12:27 +0000 (14:12 +0100)
committerChris Luke <chris_luke@comcast.com>
Wed, 6 Jun 2018 19:10:54 +0000 (19:10 +0000)
commitd0e812f2d49cf241f80ac020b6e697cd408f216b
tree12732648e0e84619e5cb5511d5f8b2112fdf8160
parent9f781d84b0943b03af2a9fd0b7c4cef721d1d4c6
Alter logging semantics for VPP PAPI object

Logging previously used a string name for the log level and changed
the system-wide log level based on this string name.  It now uses a
logging-module provided constant for the log level and changes its own
logger's level based on the name, and only if the level is provided.

This allows the logging to be more compatible with Pythonic usage,
where an external source may be used to dictate logging levels across
the system on a per module basis and should not be overridden.

Change-Id: Icf6896ff61a29b12c11d04374767322cdb330323
Signed-off-by: Ian Wells <iawells@cisco.com>
src/vpp-api/python/vpp_papi.py