Hacker News new | past | comments | ask | show | jobs | submit login
MongoDB Random? (github.com/mongodb)
2 points by etaty on May 30, 2013 | hide | past | favorite | 3 comments



By a quick glance, they are only logging 10% of exceptions, so if there's a lot, logs don't get clogged.


Also, the first exception is logged regardless.


So, log first exception, then a random 10% sample of the following instances of the same exception?

IIF the approach of limiting the number of logged exceptions is valid, does it make any sense to randomly choose which ones - other than it was an easy one-line hack?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: