diff options
Diffstat (limited to 'src/mongo/db/repl/oplog_applier_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog_applier_impl.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog_applier_impl.cpp b/src/mongo/db/repl/oplog_applier_impl.cpp index 6d9586b8f0c..769f5350921 100644 --- a/src/mongo/db/repl/oplog_applier_impl.cpp +++ b/src/mongo/db/repl/oplog_applier_impl.cpp @@ -113,7 +113,7 @@ Status finishAndLogApply(OperationContext* opCtx, Milliseconds(opDuration), Milliseconds(serverGlobalParams.slowMS)) .first) { - if (logV2IsJson(serverGlobalParams.logFormat)) { + { logv2::DynamicAttributes attrs; @@ -127,7 +127,10 @@ Status finishAndLogApply(OperationContext* opCtx, attrs.add("duration", opDuration); LOGV2(51801, "applied op", attrs); - } else { + } + + // TODO SERVER-46219: Log also with old log system to not break unit tests + { StringBuilder s; s << "applied op: "; |