Meteor-Community-Packages / meteor-collection2

A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
https://packosphere.com/aldeed/collection2
MIT License
1.02k stars 108 forks source link

Question: A way to log all errors without actually throwing them? #423

Open abjennings opened 3 years ago

abjennings commented 3 years ago

We've written schemas for all of our collections, but we think there are a few mistakes in them. We'd like to turn them on in production, but in a way that console.logs any errors without actually stopping the insert or update.

Is this possible?

harryadel commented 3 years ago

You might try enabling SimpleSchema.debug option. https://github.com/Meteor-Community-Packages/meteor-collection2#problems