papi: use the injected logger wherever possible 60/20660/3
authorVratko Polak <vrpolak@cisco.com>
Tue, 16 Jul 2019 12:32:55 +0000 (14:32 +0200)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Tue, 16 Jul 2019 16:33:06 +0000 (16:33 +0000)
commitb659020337e3e72f7480098dbee93b45d4dec1f2
treeb09da6b4d72d643d4b7768f100feb1ceb45ff1c4
parent31b315707f148a087a206214159d8957cc9f9cfb
papi: use the injected logger wherever possible

As the injected logger is already expected
to be used everywhere, this is a fix.

The few lines in vpp_serializer.py are not fixed,
but they are not encountered in CSIT testing.

Functions call_logger and return_logger
have single call site each (and confusing names, as they do not log),
so saved few lines by inlining them.

Type: fix

Change-Id: I7dd1e610ef6b885943708bf78bddedfbcf4daa1a
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
src/vpp-api/python/vpp_papi/vpp_papi.py