Permalink
Browse files

Merge "fix: Reduce logging severity of certain errors"

  • Loading branch information...
2 parents 3d3d6ef + d5d2ef3 commit c5ae040cbb3a410df307d646cbae50131c01b7ad Jenkins committed with openstack-gerrit Dec 9, 2013
Showing with 5 additions and 5 deletions.
  1. +3 −3 marconi/common/transport/wsgi/helpers.py
  2. +2 −2 marconi/queues/transport/wsgi/utils.py
@@ -76,9 +76,9 @@ def validate_queue_identification(validate, req, resp, params):
project = params['project_id']
queue = params['queue_name'].decode('utf-8', 'replace')
- LOG.warn(_(u'Invalid queue name "%(queue)s" submitted for '
- u'project: %(project)s'),
- {'queue': queue, 'project': project})
+ LOG.debug(_(u'Invalid queue name "%(queue)s" submitted for '
+ u'project: %(project)s'),
+ {'queue': queue, 'project': project})
raise falcon.HTTPBadRequest(_(u'Invalid queue identification'),
_(u'The format of the submitted queue '
@@ -68,12 +68,12 @@ def filter_stream(stream, len, spec=None, doctype=JSONObject):
document = utils.read_json(stream, len)
except utils.MalformedJSON as ex:
- LOG.exception(ex)
+ LOG.debug(ex)
description = _(u'Request body could not be parsed.')
raise errors.HTTPBadRequestBody(description)
except utils.OverflowedJSONInteger as ex:
- LOG.exception(ex)
+ LOG.debug(ex)
description = _(u'JSON contains integer that is too large.')
raise errors.HTTPBadRequestBody(description)

0 comments on commit c5ae040

Please sign in to comment.