diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-02-18 09:30:37 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-18 21:22:37 +0000 |
commit | 2b61edc505e45acc7927aee40e4e8abeb99420cd (patch) | |
tree | 3de213a9ac3db322e919143f902b2e91c455735b /src/mongo/db/repl/oplog_applier_impl.cpp | |
parent | 80512e580834b70c97f1facf3cd78da97be643c1 (diff) | |
download | mongo-2b61edc505e45acc7927aee40e4e8abeb99420cd.tar.gz |
SERVER-46219 Unittests always uses text even if the server uses JSON.
Temporary until we work on fixing the tests.
Transaction slow query log logs with both new and old log statement
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: "; |