[–] facorreia 11y ago ↗ What an odd thing! What's the purpose of that? This looks one case where a comment explaining the intention would add value.Update: It seems that what it does is to only log 10% of errors... on average. Of course that also seems to make logs non-deterministic. [–] brianwawok 11y ago ↗ Yes a hack to stop someone spamming the same error from bringing the server down. Not the worst of Mongo hacks by far.
[–] brianwawok 11y ago ↗ Yes a hack to stop someone spamming the same error from bringing the server down. Not the worst of Mongo hacks by far.
3 comments
[ 1795 ms ] story [ 160 ms ] threadUpdate: It seems that what it does is to only log 10% of errors... on average. Of course that also seems to make logs non-deterministic.