Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add webconfig for dmaap/rapp rest client
[nonrtric.git]
/
test
/
cr
/
cr.py
diff --git
a/test/cr/cr.py
b/test/cr/cr.py
index
28e3b10
..
105ccc2
100644
(file)
--- a/
test/cr/cr.py
+++ b/
test/cr/cr.py
@@
-31,7
+31,7
@@
app = Flask(__name__)
msg_callbacks={}
# Server info
msg_callbacks={}
# Server info
-HOST_IP = "
0.0.0.0
"
+HOST_IP = "
::
"
HOST_PORT = 8090
# Metrics vars
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:
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))
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(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()):
cntr_msg_callbacks += 1
if (id in msg_callbacks.keys()):