summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2020-02-20 16:05:48 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-21 20:12:44 +0000
commit0f7625b5cdbc24ed0fce1e168059118cb025d869 (patch)
tree3ea90b71ed2510e220140626b351f6e998d2d8b7 /src/mongo/util/concurrency
parent3463ea25afcbf2c07b96f043904961b5c0f04474 (diff)
downloadmongo-0f7625b5cdbc24ed0fce1e168059118cb025d869.tar.gz
SERVER-45567 removing util/log.h where I can
o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
Diffstat (limited to 'src/mongo/util/concurrency')
-rw-r--r--src/mongo/util/concurrency/thread_name.cpp1
-rw-r--r--src/mongo/util/concurrency/thread_pool_test.cpp1
-rw-r--r--src/mongo/util/concurrency/thread_pool_test_common.cpp10
-rw-r--r--src/mongo/util/concurrency/ticketholder.cpp1
-rw-r--r--src/mongo/util/concurrency/with_lock_test.cpp1
5 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/util/concurrency/thread_name.cpp b/src/mongo/util/concurrency/thread_name.cpp
index ecd727c4c79..73444d5e6bc 100644
--- a/src/mongo/util/concurrency/thread_name.cpp
+++ b/src/mongo/util/concurrency/thread_name.cpp
@@ -53,7 +53,6 @@
#include "mongo/config.h"
#include "mongo/logv2/log.h"
#include "mongo/platform/atomic_word.h"
-#include "mongo/util/log.h"
#include "mongo/util/str.h"
namespace mongo {
diff --git a/src/mongo/util/concurrency/thread_pool_test.cpp b/src/mongo/util/concurrency/thread_pool_test.cpp
index fc246470bf1..9546a3366d6 100644
--- a/src/mongo/util/concurrency/thread_pool_test.cpp
+++ b/src/mongo/util/concurrency/thread_pool_test.cpp
@@ -43,7 +43,6 @@
#include "mongo/util/concurrency/thread_pool.h"
#include "mongo/util/concurrency/thread_pool_test_common.h"
#include "mongo/util/concurrency/thread_pool_test_fixture.h"
-#include "mongo/util/log.h"
#include "mongo/util/time_support.h"
#include "mongo/util/timer.h"
diff --git a/src/mongo/util/concurrency/thread_pool_test_common.cpp b/src/mongo/util/concurrency/thread_pool_test_common.cpp
index 2e5d74e0ab9..7c440579160 100644
--- a/src/mongo/util/concurrency/thread_pool_test_common.cpp
+++ b/src/mongo/util/concurrency/thread_pool_test_common.cpp
@@ -35,13 +35,13 @@
#include <memory>
+#include "mongo/logv2/log.h"
#include "mongo/platform/mutex.h"
#include "mongo/stdx/condition_variable.h"
#include "mongo/unittest/death_test.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/concurrency/thread_pool_interface.h"
#include "mongo/util/concurrency/thread_pool_test_fixture.h"
-#include "mongo/util/log.h"
namespace mongo {
namespace {
@@ -78,7 +78,9 @@ public:
TptRegistrationAgent(const std::string& name, ThreadPoolTestCaseFactory makeTest) {
auto& entry = threadPoolTestCaseRegistry()[name];
if (entry) {
- severe() << "Multiple attempts to register ThreadPoolTest named " << name;
+ LOGV2_FATAL(23922,
+ "Multiple attempts to register ThreadPoolTest named {name}",
+ "name"_attr = name);
fassertFailed(34355);
}
entry = std::move(makeTest);
@@ -94,7 +96,9 @@ public:
TptDeathRegistrationAgent(const std::string& name, ThreadPoolTestCaseFactory makeTest) {
auto& entry = threadPoolTestCaseRegistry()[name];
if (entry) {
- severe() << "Multiple attempts to register ThreadPoolDeathTest named " << name;
+ LOGV2_FATAL(23923,
+ "Multiple attempts to register ThreadPoolDeathTest named {name}",
+ "name"_attr = name);
fassertFailed(34356);
}
entry = [makeTest](ThreadPoolFactory makeThreadPool) {
diff --git a/src/mongo/util/concurrency/ticketholder.cpp b/src/mongo/util/concurrency/ticketholder.cpp
index 13430c48640..45bf7e51bc2 100644
--- a/src/mongo/util/concurrency/ticketholder.cpp
+++ b/src/mongo/util/concurrency/ticketholder.cpp
@@ -36,7 +36,6 @@
#include <iostream>
#include "mongo/logv2/log.h"
-#include "mongo/util/log.h"
#include "mongo/util/str.h"
namespace mongo {
diff --git a/src/mongo/util/concurrency/with_lock_test.cpp b/src/mongo/util/concurrency/with_lock_test.cpp
index 1c5f6acf375..8f3b7e3cda0 100644
--- a/src/mongo/util/concurrency/with_lock_test.cpp
+++ b/src/mongo/util/concurrency/with_lock_test.cpp
@@ -35,7 +35,6 @@
#include "mongo/platform/mutex.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/concurrency/with_lock.h"
-#include "mongo/util/log.h"
#include <iostream>