Xapps now have an accessible mdc logger.
Issue-ID: RIC-228
Change-Id: Ic1a4a6931398535821db238ed0e67c8181c163bd
Signed-off-by: Tommy Carpenter <tc677g@att.com>
diff --git a/examples/pong_xapp.py b/examples/pong_xapp.py
index e0939f0..5c90685 100644
--- a/examples/pong_xapp.py
+++ b/examples/pong_xapp.py
@@ -28,7 +28,8 @@
def sixtyh(self, summary, sbuf):
"""callback for 60000"""
- print("registered 60000 handler called!")
+ self.logger.info("registered 60000 handler called!")
+ # see comment in ping about this; bytes does not work with the ric mdc logger currently
print(summary)
jpay = json.loads(summary["payload"])
self.rmr_rts(sbuf, new_payload=json.dumps({"ACK": jpay["test_send"]}).encode(), new_mtype=60001, retries=100)
@@ -37,7 +38,7 @@
def defh(self, summary, sbuf):
"""default callback"""
- print("default handler called!")
+ self.logger.info("default handler called!")
print(summary)
self.rmr_free(sbuf)