Merge "Handle invalid input sent to monasca-forwarder"

This commit is contained in:
Jenkins 2016-08-24 04:15:06 +00:00 committed by Gerrit Code Review
commit e869ceb442
1 changed files with 1 additions and 1 deletions

View File

@ -55,8 +55,8 @@ class AgentInputHandler(tornado.web.RequestHandler):
"""
global message_batch
msg = tornado.escape.json_decode(self.request.body)
try:
msg = tornado.escape.json_decode(self.request.body)
message_batch.extend(msg)
except Exception:
log.exception('Error parsing body of Agent Input')