logging on validation errors

This commit is contained in:
boyska 2016-07-18 14:38:19 +02:00
parent facde97f80
commit bae09d70f7

View file

@ -44,6 +44,7 @@ def addtime_kind_post(kind):
form = Form()
del Form
if not form.validate_on_submit():
current_app.logger.error('Validation errors: {}'.format(form.errors))
abort(400)
data = receiver(form)
model = current_app.larigira.monitor.source.model