diff options
author | Vinod Mangalpally <vinod.mang@rackspace.com> | 2013-08-12 12:02:22 -0500 |
---|---|---|
committer | Vinod Mangalpally <vinod.mang@rackspace.com> | 2013-08-12 12:06:14 -0500 |
commit | 0c345c425b59b2f1bbad32113b78c9fcdb89ca20 (patch) | |
tree | ed65a245a18f8dda08d6f317e13f56edbc245366 /designate/schema | |
parent | ad1935a9dae7cc989babe4b87f76eda84fef7cd4 (diff) | |
download | designate-0c345c425b59b2f1bbad32113b78c9fcdb89ca20.tar.gz |
Bug 1206849: Add more logging to the API Layer
Bug 1206849: Add more logging to the API Layer
Added more logging to the API Layer. When in doubt, I erred on the side
of more.
Change-Id: I82f173e0a63972cf852ca2f0c66db9af9488673b
Diffstat (limited to 'designate/schema')
-rw-r--r-- | designate/schema/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/designate/schema/__init__.py b/designate/schema/__init__.py index 9bc7f0cb..000d443e 100644 --- a/designate/schema/__init__.py +++ b/designate/schema/__init__.py @@ -51,6 +51,7 @@ class Schema(object): return self.raw_schema def validate(self, obj): + LOG.debug('Validating values: %r' % obj) errors = [] for error in self.validator.iter_errors(obj): @@ -61,6 +62,7 @@ class Schema(object): }) if len(errors) > 0: + LOG.debug('Errors in validation: %r', errors) raise exceptions.InvalidObject("Provided object does not match " "schema", errors=errors) |