Extend send-message methods to log message state
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I77b2fe8abeda75faa8e949ba759a9e1f16d0f3b5
diff --git a/a1/a1rmr.py b/a1/a1rmr.py
index f623024..050674c 100644
--- a/a1/a1rmr.py
+++ b/a1/a1rmr.py
@@ -121,6 +121,7 @@
mdc_logger.debug("_send_msg: sending: {}".format(pre_send_summary))
sbuf = rmr.rmr_send_msg(self.mrc, sbuf)
msg_state = self._assert_good_send(sbuf, pre_send_summary)
+ mdc_logger.debug("_send_msg: result message state: {}".format(msg_state))
if msg_state != rmr.RMR_ERR_RETRY:
break
@@ -139,6 +140,7 @@
mdc_logger.debug("_rts_msg: sending: {}".format(pre_send_summary))
sbuf_rts = rmr.rmr_rts_msg(self.mrc, sbuf_rts, payload=pay, mtype=mtype)
msg_state = self._assert_good_send(sbuf_rts, pre_send_summary)
+ mdc_logger.debug("_rts_msg: result message state: {}".format(msg_state))
if msg_state != rmr.RMR_ERR_RETRY:
break
diff --git a/docs/release-notes.rst b/docs/release-notes.rst
index a54d8be..ba65417 100644
--- a/docs/release-notes.rst
+++ b/docs/release-notes.rst
@@ -20,6 +20,7 @@
* Fix _send_msg method to free allocated RMR message buffers
* Adjust send-message methods to retry only on RMR_ERR_RETRY
+* Extend send-message methods to log message state after send
* Use constants from ricxappframe.rmr instead of hardcoded strings
* Upgrade RMR to version 4.0.5
* Upgrade tavern to version 1.2.2