Merge "Stop logging API not found as ERROR"
This commit is contained in:
commit
c12e42b309
@ -58,7 +58,7 @@ class BaseController(rest.RestController):
|
|||||||
"""Gets an object from the database and returns it."""
|
"""Gets an object from the database and returns it."""
|
||||||
db_obj = repo.get(session, id=id, show_deleted=show_deleted)
|
db_obj = repo.get(session, id=id, show_deleted=show_deleted)
|
||||||
if not db_obj:
|
if not db_obj:
|
||||||
LOG.exception('%(name)s %(id)s not found',
|
LOG.debug('%(name)s %(id)s not found',
|
||||||
{'name': data_model._name(), 'id': id})
|
{'name': data_model._name(), 'id': id})
|
||||||
raise exceptions.NotFound(
|
raise exceptions.NotFound(
|
||||||
resource=data_model._name(), id=id)
|
resource=data_model._name(), id=id)
|
||||||
|
Loading…
Reference in New Issue
Block a user