diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-04-25 12:23:19 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-26 23:06:52 +0000 |
commit | eae31861e0f813f0099e1d490c4a622d75cd5a08 (patch) | |
tree | bcfeb9feeb3bc37ccb1eb3250eca2f91e4bb8523 /src/mongo/db/server_options_base.cpp | |
parent | 085ffeb310e8fed49739cf8443fcb13ea795d867 (diff) | |
download | mongo-eae31861e0f813f0099e1d490c4a622d75cd5a08.tar.gz |
SERVER-47735 change mongo source over to logv2
- Remove several legacy logger/ files
- Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version.
- Globally replace logger::{LogSeverity,LogComponent} => logv2::
Diffstat (limited to 'src/mongo/db/server_options_base.cpp')
-rw-r--r-- | src/mongo/db/server_options_base.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/server_options_base.cpp b/src/mongo/db/server_options_base.cpp index d6770d1ee7b..1cdda7e93d7 100644 --- a/src/mongo/db/server_options_base.cpp +++ b/src/mongo/db/server_options_base.cpp @@ -32,7 +32,7 @@ #include "mongo/base/string_data.h" #include "mongo/db/server_options_base_gen.h" #include "mongo/db/server_options_general_gen.h" -#include "mongo/logger/log_component.h" +#include "mongo/logv2/log_component.h" #include "mongo/util/options_parser/environment.h" #include "mongo/util/options_parser/option_description.h" #include "mongo/util/options_parser/option_section.h" @@ -58,9 +58,9 @@ Status addBaseServerOptions(moe::OptionSection* options) { const auto hatch = moe::OptionSection::OptionParserUsageType::BaseServerOptionsException; // log component hierarchy verbosity levels - for (int i = 0; i < int(logger::LogComponent::kNumLogComponents); ++i) { - logger::LogComponent component = static_cast<logger::LogComponent::Value>(i); - if (component == logger::LogComponent::kDefault) { + for (int i = 0; i < int(logv2::LogComponent::kNumLogComponents); ++i) { + logv2::LogComponent component = static_cast<logv2::LogComponent::Value>(i); + if (component == logv2::LogComponent::kDefault) { continue; } general_options |