Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "support MCP installer"
[doctor.git]
/
doctor_tests
/
consumer
/
sample.py
diff --git
a/doctor_tests/consumer/sample.py
b/doctor_tests/consumer/sample.py
index
eaf5fab
..
c7dcf4f
100644
(file)
--- a/
doctor_tests/consumer/sample.py
+++ b/
doctor_tests/consumer/sample.py
@@
-54,7
+54,9
@@
class ConsumerApp(Thread):
@app.route('/failure', methods=['POST'])
def event_posted():
@app.route('/failure', methods=['POST'])
def event_posted():
- self.log.info('doctor consumer notified at %s' % time.time())
+ notified_time = time.time()
+ self.log.info('doctor consumer notified at %s' % notified_time)
+ self.consumer.notified_time = notified_time
data = json.loads(request.data.decode('utf8'))
self.log.info('sample consumer received data = %s' % data)
return 'OK'
data = json.loads(request.data.decode('utf8'))
self.log.info('sample consumer received data = %s' % data)
return 'OK'