diff options
author | Graham Hayes <graham.hayes@hp.com> | 2015-04-14 11:43:12 +0200 |
---|---|---|
committer | Graham Hayes <graham.hayes@hp.com> | 2015-04-14 17:21:23 +0200 |
commit | 35f83ceab3c776d1afc756330b1c25e835d2cb30 (patch) | |
tree | 3a52d8b9343f03af80083c0bb39de1bd10a308fa | |
parent | 7f788b0585e3d50af1255aa52c05e362a1fb973d (diff) | |
download | designate-35f83ceab3c776d1afc756330b1c25e835d2cb30.tar.gz |
Reduce excessive stacktraces in logs
No impact - just stops the API from dumping stack traces in the logs
when there is bad requests / invalid objects send to API
Change-Id: I020d0c05ea8b6c7973999d23078daf4365c79933
-rw-r--r-- | designate/exceptions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/designate/exceptions.py b/designate/exceptions.py index 18b0bd70..5c71d7bd 100644 --- a/designate/exceptions.py +++ b/designate/exceptions.py @@ -100,11 +100,13 @@ class QuotaResourceUnknown(Base): class InvalidObject(Base): error_code = 400 error_type = 'invalid_object' + expected = True class BadRequest(Base): error_code = 400 error_type = 'bad_request' + expected = True class InvalidUUID(BadRequest): |