diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2020-02-26 22:58:46 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-27 19:23:39 +0000 |
commit | ff724b466d7bc7ead68eacd5524cc1185b8b4523 (patch) | |
tree | ab550e052883eb26ad7321663cb2f6066e43ce28 /src/mongo/tools | |
parent | 9a421e19cef1caa2627d4776db700ae5c8751932 (diff) | |
download | mongo-ff724b466d7bc7ead68eacd5524cc1185b8b4523.tar.gz |
SERVER-46405 Remove {get,set,clear}MinimumLoggedSeverity from logger V1 API
Diffstat (limited to 'src/mongo/tools')
-rw-r--r-- | src/mongo/tools/mongobridge_options.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/tools/mongobridge_options.cpp b/src/mongo/tools/mongobridge_options.cpp index af1aee5fba6..6b29b3db7e8 100644 --- a/src/mongo/tools/mongobridge_options.cpp +++ b/src/mongo/tools/mongobridge_options.cpp @@ -35,8 +35,8 @@ #include <iostream> #include "mongo/base/status.h" +#include "mongo/logv2/log.h" #include "mongo/platform/random.h" -#include "mongo/util/log.h" #include "mongo/util/options_parser/startup_options.h" namespace mongo { @@ -81,7 +81,9 @@ Status storeMongoBridgeOptions(const moe::Environment& params, return {ErrorCodes::BadValue, "The string for the --verbose option cannot contain characters other than 'v'"}; } - setMinimumLoggedSeverity(logger::LogSeverity::Debug(verbosity.length())); + + logv2::LogManager::global().getGlobalSettings().setMinimumLoggedSeverity( + mongo::logv2::LogComponent::kDefault, logv2::LogSeverity::Debug(verbosity.length())); } return Status::OK(); |