mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-11 02:49:35 -06:00
14884 log error on form validation fail
This commit is contained in:
parent
6930df85f3
commit
18efe72b11
@ -143,6 +143,11 @@ def process_event_rules(event_rules, object_type, event_type, data, username=Non
|
||||
form.cleaned_data.pop('_commit')
|
||||
event_data.update(form.cleaned_data)
|
||||
else:
|
||||
logger.error(
|
||||
_("Processing event rule {event_rule} failed - Cannot validate script form: {errors}").format(
|
||||
event_rule=event_rule, errors=form.errors
|
||||
)
|
||||
)
|
||||
continue
|
||||
|
||||
# Enqueue a Job to record the script's execution
|
||||
|
||||
Loading…
Reference in New Issue
Block a user