summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options_server_helpers.cpp
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2020-03-22 20:33:03 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-23 00:49:46 +0000
commit79a8452b2a813b796059e5eab6c18f685283ce08 (patch)
treebd5012bda9b1561f741c46bfadc7363837ad3d0e /src/mongo/db/server_options_server_helpers.cpp
parentc91a2f5932ac08ca28b25ce11b8ac4949552e271 (diff)
downloadmongo-79a8452b2a813b796059e5eab6c18f685283ce08.tar.gz
Revert "SERVER-46765 fix '--version' & '--sysinfo', which use kPlain logging"
This reverts commit cddfeb0c7cb137d46b14da18a7cfd4905bfab87f.
Diffstat (limited to 'src/mongo/db/server_options_server_helpers.cpp')
-rw-r--r--src/mongo/db/server_options_server_helpers.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mongo/db/server_options_server_helpers.cpp b/src/mongo/db/server_options_server_helpers.cpp
index 0d237dfe7bd..878fa85a40f 100644
--- a/src/mongo/db/server_options_server_helpers.cpp
+++ b/src/mongo/db/server_options_server_helpers.cpp
@@ -37,12 +37,10 @@
#include <boost/algorithm/string/trim.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
-#include <fmt/format.h>
#include <ios>
#include <iostream>
#include "mongo/base/status.h"
-#include "mongo/bson/json.h"
#include "mongo/bson/util/builder.h"
#include "mongo/config.h"
#include "mongo/db/server_options.h"
@@ -115,14 +113,8 @@ Status setParsedOpts(const moe::Environment& params) {
}
} // namespace
-void printCommandLineOpts(std::ostream* os) {
- if (os) {
- *os << format(FMT_STRING("Options set by command line: {}"),
- tojson(serverGlobalParams.parsedOpts, ExtendedRelaxedV2_0_0, true))
- << std::endl;
- } else {
- LOGV2(21951, "Options set by command line", "options"_attr = serverGlobalParams.parsedOpts);
- }
+void printCommandLineOpts() {
+ LOGV2(21951, "Options set by command line", "options"_attr = serverGlobalParams.parsedOpts);
}
Status validateServerOptions(const moe::Environment& params) {