Log exception on each ResourceInvalid to make debugging easier
This commit is contained in:
parent
d9d3b73070
commit
8f3a03d311
@ -663,7 +663,7 @@ class PillarServer(BlinkerCompatibleEve):
|
|||||||
return self.pillar_error_handler(error)
|
return self.pillar_error_handler(error)
|
||||||
|
|
||||||
def handle_sdk_resource_invalid(self, error):
|
def handle_sdk_resource_invalid(self, error):
|
||||||
self.log.info('Forwarding ResourceInvalid exception to client: %s', error, exc_info=True)
|
self.log.exception('Forwarding ResourceInvalid exception to client: %s', error, exc_info=True)
|
||||||
|
|
||||||
# Raising a Werkzeug 422 exception doens't work, as Flask turns it into a 500.
|
# Raising a Werkzeug 422 exception doens't work, as Flask turns it into a 500.
|
||||||
return _('The submitted data could not be validated.'), 422
|
return _('The submitted data could not be validated.'), 422
|
||||||
|
Loading…
x
Reference in New Issue
Block a user