Skip to content

Commit

Permalink
Merge branch 'master' into dev-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Sep 3, 2018
2 parents 86b5059 + b6bb9dd commit 32a9ca5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions connexion/decorators/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def validate_schema(self, data, url):
self.validator.validate(data)
except ValidationError as exception:
logger.error("{url} validation error: {error}".format(url=url,
error=exception.message))
error=exception.message),
extra={'validator': 'body'})
return problem(400, 'Bad Request', str(exception.message))

return None
Expand All @@ -202,7 +203,8 @@ def validate_schema(self, data, url):
self.validator.validate(data)
except ValidationError as exception:
logger.error("{url} validation error: {error}".format(url=url,
error=exception))
error=exception),
extra={'validator': 'response'})
six.reraise(*sys.exc_info())

return None
Expand Down

0 comments on commit 32a9ca5

Please sign in to comment.