summaryrefslogtreecommitdiff
path: root/src/mongo/unittest
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-02-20 16:54:57 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-23 18:43:31 +0000
commite8f1d29de757d41f7d082d5ca1e667d1b8938741 (patch)
tree40a89fd7ef888cca91c413f4b5ecf981afcbdd99 /src/mongo/unittest
parent68dfffe822f1888f221b265dc7974e9f98ea383c (diff)
downloadmongo-e8f1d29de757d41f7d082d5ca1e667d1b8938741.tar.gz
SERVER-46156 Deprecate LogstreamBuilder and more manual log conversions
* Remove setPlainConsoleLogger() * Update errorcodes linter to work with custom user defined log macros rename src/mongo/embedded/{embedded_log_appender.h => embedded_log_backend.h} (61%)
Diffstat (limited to 'src/mongo/unittest')
-rw-r--r--src/mongo/unittest/unittest.cpp10
-rw-r--r--src/mongo/unittest/unittest.h4
2 files changed, 8 insertions, 6 deletions
diff --git a/src/mongo/unittest/unittest.cpp b/src/mongo/unittest/unittest.cpp
index 816c97761f4..5bd0ce6aa61 100644
--- a/src/mongo/unittest/unittest.cpp
+++ b/src/mongo/unittest/unittest.cpp
@@ -83,12 +83,14 @@ auto& suitesMap() {
} // namespace
-logger::LogstreamBuilder log() {
- return LogstreamBuilder(unittestOutput(), getThreadName(), logger::LogSeverity::Log());
+logger::LogstreamBuilderDeprecated log() {
+ return LogstreamBuilderDeprecated(
+ unittestOutput(), getThreadName(), logger::LogSeverity::Log());
}
-logger::LogstreamBuilder warning() {
- return LogstreamBuilder(unittestOutput(), getThreadName(), logger::LogSeverity::Warning());
+logger::LogstreamBuilderDeprecated warning() {
+ return LogstreamBuilderDeprecated(
+ unittestOutput(), getThreadName(), logger::LogSeverity::Warning());
}
void setupTestLogger() {
diff --git a/src/mongo/unittest/unittest.h b/src/mongo/unittest/unittest.h
index 30ff41a6971..f3582d319a0 100644
--- a/src/mongo/unittest/unittest.h
+++ b/src/mongo/unittest/unittest.h
@@ -338,8 +338,8 @@ void setupTestLogger();
* Gets a LogstreamBuilder for logging to the unittest log domain, which may have
* different target from the global log domain.
*/
-logger::LogstreamBuilder log();
-logger::LogstreamBuilder warning();
+logger::LogstreamBuilderDeprecated log();
+logger::LogstreamBuilderDeprecated warning();
/**
* Representation of a collection of tests.