logging on validation errors
This commit is contained in:
parent
facde97f80
commit
bae09d70f7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue