|
|
|
|
|
by tomjakubowski
254 days ago
|
|
Years and years ago, the MongoDB Java driver had something like this to skip logging sometimes in one of its error handling routines. } catch (Exception e) {
if (!((_ok) ? true : (Math.random() > 0.1))) {
return res;
}
final StringBuilder logError = (new StringBuilder("Server seen down: ")).append(_addr);
/* edited for brevity: log the error */
https://github.com/mongodb/mongo-java-driver/blob/1d2e6faa80... |
|