Merge "fix: Reduce logging severity of certain errors"
This commit is contained in:
commit
c5ae040cbb
@ -76,7 +76,7 @@ def validate_queue_identification(validate, req, resp, params):
|
|||||||
project = params['project_id']
|
project = params['project_id']
|
||||||
queue = params['queue_name'].decode('utf-8', 'replace')
|
queue = params['queue_name'].decode('utf-8', 'replace')
|
||||||
|
|
||||||
LOG.warn(_(u'Invalid queue name "%(queue)s" submitted for '
|
LOG.debug(_(u'Invalid queue name "%(queue)s" submitted for '
|
||||||
u'project: %(project)s'),
|
u'project: %(project)s'),
|
||||||
{'queue': queue, 'project': project})
|
{'queue': queue, 'project': project})
|
||||||
|
|
||||||
|
@ -68,12 +68,12 @@ def filter_stream(stream, len, spec=None, doctype=JSONObject):
|
|||||||
document = utils.read_json(stream, len)
|
document = utils.read_json(stream, len)
|
||||||
|
|
||||||
except utils.MalformedJSON as ex:
|
except utils.MalformedJSON as ex:
|
||||||
LOG.exception(ex)
|
LOG.debug(ex)
|
||||||
description = _(u'Request body could not be parsed.')
|
description = _(u'Request body could not be parsed.')
|
||||||
raise errors.HTTPBadRequestBody(description)
|
raise errors.HTTPBadRequestBody(description)
|
||||||
|
|
||||||
except utils.OverflowedJSONInteger as ex:
|
except utils.OverflowedJSONInteger as ex:
|
||||||
LOG.exception(ex)
|
LOG.debug(ex)
|
||||||
description = _(u'JSON contains integer that is too large.')
|
description = _(u'JSON contains integer that is too large.')
|
||||||
raise errors.HTTPBadRequestBody(description)
|
raise errors.HTTPBadRequestBody(description)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user