@@ -232,7 +232,6 @@ async function tryOperation<
232232 let previousServer : ServerDescription | undefined ;
233233
234234 for ( let tries = 0 ; tries < maxTries ; tries ++ ) {
235- console . log ( 'trying' , tries , maxTries , willRetry , operation . commandName ) ;
236235 if ( previousOperationError ) {
237236 if ( hasWriteAspect && previousOperationError . code === MMAPv1_RETRY_WRITES_ERROR_CODE ) {
238237 throw new MongoServerError ( {
@@ -250,7 +249,6 @@ async function tryOperation<
250249 throw previousOperationError ;
251250
252251 if ( hasReadAspect && ! isRetryableReadError ( previousOperationError ) ) {
253- console . log ( previousOperationError , isRetryableReadError ( previousOperationError ) ) ;
254252 throw previousOperationError ;
255253 }
256254
@@ -283,10 +281,8 @@ async function tryOperation<
283281 if ( tries > 0 && operation . hasAspect ( Aspect . COMMAND_BATCHING ) ) {
284282 operation . resetBatch ( ) ;
285283 }
286- console . log ( 'executing' , operation . commandName ) ;
287284 return await operation . execute ( server , session , timeoutContext ) ;
288285 } catch ( operationError ) {
289- console . log ( 'operationError' , operationError ) ;
290286 if ( ! ( operationError instanceof MongoError ) ) throw operationError ;
291287 if (
292288 previousOperationError != null &&
0 commit comments