File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
460
460
let started = 0 ;
461
461
if (
462
462
this . monitorCommands ||
463
- ( this . established && this . mongoLogger ?. willLog ( SeverityLevel . DEBUG , MongoLoggableComponent . COMMAND ) )
463
+ ( this . established &&
464
+ this . mongoLogger ?. willLog ( SeverityLevel . DEBUG , MongoLoggableComponent . COMMAND ) )
464
465
) {
465
466
started = now ( ) ;
466
467
this . emitAndLogCommand (
@@ -489,7 +490,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
489
490
490
491
if (
491
492
this . monitorCommands ||
492
- ( this . established && this . mongoLogger ?. willLog ( SeverityLevel . DEBUG , MongoLoggableComponent . COMMAND ) )
493
+ ( this . established &&
494
+ this . mongoLogger ?. willLog ( SeverityLevel . DEBUG , MongoLoggableComponent . COMMAND ) )
493
495
) {
494
496
this . emitAndLogCommand (
495
497
this . monitorCommands ,
@@ -512,7 +514,8 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
512
514
} catch ( error ) {
513
515
if (
514
516
this . monitorCommands ||
515
- ( this . established && this . mongoLogger ?. willLog ( SeverityLevel . DEBUG , MongoLoggableComponent . COMMAND ) )
517
+ ( this . established &&
518
+ this . mongoLogger ?. willLog ( SeverityLevel . DEBUG , MongoLoggableComponent . COMMAND ) )
516
519
) {
517
520
if ( error . name === 'MongoWriteConcernError' ) {
518
521
this . emitAndLogCommand (
You can’t perform that action at this time.
0 commit comments