feat: Update error logging in BaseView to use asdict for validation failures during add operations

1 parent 97cfcf7a
......@@ -892,7 +892,7 @@ class BaseView(object):
except ValidationFailure as e:
log.error(f"Add cstruct: {e.cstruct}")
log.error(f"Add Error: {str(e.error)}")
log.error(f"Add Error: {str(e.messages)}")
log.error(f"Add Error: {str(e.asdict())}")
value = self.before_add()
if self.req.is_xhr:
error = e.error.asdict()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!