laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/pysim/+/35613?usp=email )

Change subject: osmo-smdpp: Actually dump Rx/Tx JSON in JSON format and not as 
python dict
......................................................................

osmo-smdpp: Actually dump Rx/Tx JSON in JSON format and not as python dict

Change-Id: Ieea3fd2d0f0239acfa6a5c4cfdbfd558d1a3e0ea
---
M osmo-smdpp.py
1 file changed, 11 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve




diff --git a/osmo-smdpp.py b/osmo-smdpp.py
index 6ae5be8..41cdfc8 100755
--- a/osmo-smdpp.py
+++ b/osmo-smdpp.py
@@ -252,13 +252,13 @@
             # TODO: reject any non-JSON Content-type

             content = json.loads(request.content.read())
-            print("Rx JSON: %s" % content)
+            print("Rx JSON: %s" % json.dumps(content))
             set_headers(request)

             output = func(self, request, content) or {}

             build_resp_header(output)
-            print("Tx JSON: %s" % output)
+            print("Tx JSON: %s" % json.dumps(output))
             return json.dumps(output)
         return _api_wrapper


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/35613?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ieea3fd2d0f0239acfa6a5c4cfdbfd558d1a3e0ea
Gerrit-Change-Number: 35613
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to