X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcr%2Fcr.py;h=105ccc2530d0776e3b4029f6151d8169e7dbd371;hb=70e878f1b5a558baaaa5ab5885a039ed96c9f8d5;hp=28e3b1001c156a43ef03181bf8efe004c2947f99;hpb=34882342628629b55c19e7f6a5369de045ab9102;p=nonrtric.git diff --git a/test/cr/cr.py b/test/cr/cr.py index 28e3b100..105ccc25 100644 --- a/test/cr/cr.py +++ b/test/cr/cr.py @@ -31,7 +31,7 @@ app = Flask(__name__) msg_callbacks={} # Server info -HOST_IP = "0.0.0.0" +HOST_IP = "::" HOST_PORT = 8090 # Metrics vars @@ -90,7 +90,6 @@ def events_write(id): try: print("Received callback for id: "+id +", content-type="+request.content_type) try: - print("data:"+request.get_data) if (request.content_type == MIME_JSON): msg = request.json print("Payload(json): "+str(msg)) @@ -102,7 +101,7 @@ def events_write(id): print("Payload(content-type="+request.content_type+"). Setting data to empty, quoted, string") except: msg="\"\"" - print("Payload does not contain any json or text data, setting empty string as payload") + print("(Exception) Payload does not contain any json or text data, setting empty string as payload") cntr_msg_callbacks += 1 if (id in msg_callbacks.keys()):