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