Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove sleep from DmaapMessageConsumer
[nonrtric.git]
/
test
/
mrstub
/
mr.py
diff --git
a/test/mrstub/mr.py
b/test/mrstub/mr.py
index
1094e7c
..
9c5a2c8
100644
(file)
--- a/
test/mrstub/mr.py
+++ b/
test/mrstub/mr.py
@@
-212,9
+212,9
@@
def events_write():
print(AGENT_WRITE_URL+ " msg+status (correlationid="+id+") :" + str(msg_str))
except Exception as e:
print(AGENT_WRITE_URL+"-"+CAUGHT_EXCEPTION+" "+str(e) + " "+traceback.format_exc())
print(AGENT_WRITE_URL+ " msg+status (correlationid="+id+") :" + str(msg_str))
except Exception as e:
print(AGENT_WRITE_URL+"-"+CAUGHT_EXCEPTION+" "+str(e) + " "+traceback.format_exc())
- return Response(
SERVER_ERROR+" "+str(e), status=500, mimetype=MIME_TEXT
)
+ return Response(
'{"message": "' + SERVER_ERROR + ' ' + str(e) + '","status":"500"}', status=200, mimetype=MIME_JSON
)
- return Response('
OK', status=200, mimetype=MIME_TEXT
)
+ return Response('
{}', status=200, mimetype=MIME_JSON
)
### Functions for metrics read out ###
### Functions for metrics read out ###