]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Lower log level of errors caused by user requests to INFO
authorAkihiro Motoki <amotoki@gmail.com>
Fri, 10 Jul 2015 21:01:38 +0000 (06:01 +0900)
committerAkihiro Motoki <amotoki@gmail.com>
Sun, 12 Jul 2015 07:44:33 +0000 (16:44 +0900)
commit2d390876b99c7ee227543663aa7345ba4bef714c
treec70c3806f7891dc6ed945686559fc9b9736236e2
parent62f7279e9ada787d1838343d6b79b0a7bbe12199
Lower log level of errors caused by user requests to INFO

When webob exception is returned, error level log is
always recorded even though we return 4xx (client error)
to users. 4xx error in response code means errors due to
user requests, so error level log is not appropriate.
This commit lowers the log level to INFO for such events.

Currently only case I see is webob.exc.HTTPNotFound returned
by the policy engine when a user requests an operation
prohibited by the policy, but I think there is no reason
we deal with 404 specially in neutron.api.v2.resource.

Change-Id: I9f042a90c9bf528be7cb835d7fe818ed1879054b
Closes-Bug: #1473556
neutron/api/v2/resource.py
neutron/tests/unit/api/v2/test_resource.py