From ebb6f7f938a612bd03331921337b67c9388c19a8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 17 Jan 2024 19:36:47 +0100 Subject: [PATCH] osmo-smdpp: Actually dump Rx/Tx JSON in JSON format and not as python dict Change-Id: Ieea3fd2d0f0239acfa6a5c4cfdbfd558d1a3e0ea --- osmo-smdpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osmo-smdpp.py b/osmo-smdpp.py index 6ae5be88..41cdfc8f 100755 --- a/osmo-smdpp.py +++ b/osmo-smdpp.py @@ -252,13 +252,13 @@ class SmDppHttpServer: # 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