From 8f3a03d3113ab25788bb027f719bb6921482cfbc Mon Sep 17 00:00:00 2001 From: Anna Sirota Date: Mon, 26 Apr 2021 17:40:03 +0200 Subject: [PATCH] Log exception on each ResourceInvalid to make debugging easier --- pillar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/__init__.py b/pillar/__init__.py index 4b09e52d..d52744b4 100644 --- a/pillar/__init__.py +++ b/pillar/__init__.py @@ -663,7 +663,7 @@ class PillarServer(BlinkerCompatibleEve): return self.pillar_error_handler(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. return _('The submitted data could not be validated.'), 422