Skip to content

Commit 823deee

Browse files
committed
Fix CommandEventHelper tests
1 parent 723a6e6 commit 823deee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MongoDB.Driver/Core/Connections/CommandEventHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private void ProcessCommandRequestMessage(CommandRequestMessage message, Connect
306306
ShouldRedactReply = shouldRedactCommand
307307
};
308308

309-
if (_shouldTrace && !ShouldRedactCommand(command))
309+
if (_shouldTrace && !shouldRedactCommand)
310310
{
311311
commandState.CommandActivity = MongoTelemetry.StartCommandActivity(
312312
commandName,
@@ -416,7 +416,7 @@ private void ProcessQueryMessage(QueryMessage originalMessage, ConnectionId conn
416416
ShouldRedactReply = shouldRedactCommand
417417
};
418418

419-
if (_shouldTrace && !ShouldRedactCommand(command))
419+
if (_shouldTrace && !shouldRedactCommand)
420420
{
421421
commandState.CommandActivity = MongoTelemetry.StartCommandActivity(
422422
commandName,

0 commit comments

Comments
 (0)