summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_main.cpp
diff options
context:
space:
mode:
authorbynn <bynn.lee@mongodb.com>2020-06-18 15:01:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-22 15:33:59 +0000
commit2e8fd8b72f95af8662bd26c18057f4b8d94e6300 (patch)
tree0369082b1c7c45dac390aeb6bc3c7785552d089d /src/mongo/db/mongod_main.cpp
parenta88e793e77d95170f0a3d2e3f7d59032ef8d6a54 (diff)
downloadmongo-2e8fd8b72f95af8662bd26c18057f4b8d94e6300.tar.gz
SERVER-45600 Change the default log component for mongod_main.cpp to kControl
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r--src/mongo/db/mongod_main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp
index e542d1138e1..f6d2d3b7e36 100644
--- a/src/mongo/db/mongod_main.cpp
+++ b/src/mongo/db/mongod_main.cpp
@@ -27,7 +27,7 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kControl
#include "mongo/platform/basic.h"
@@ -326,7 +326,7 @@ ExitCode _initAndListen(ServiceContext* serviceContext, int listenPort) {
}
if (kDebugBuild)
- LOGV2_OPTIONS(20533, {LogComponent::kControl}, "DEBUG build (which is slower)");
+ LOGV2(20533, "DEBUG build (which is slower)");
#if defined(_WIN32)
VersionInfoInterface::instance().logTargetMinOS();
@@ -1101,7 +1101,7 @@ void shutdownTask(const ShutdownTaskArgs& shutdownArgs) {
// Join the logical session cache before the transport layer.
if (auto lsc = LogicalSessionCache::get(serviceContext)) {
- LOGV2_OPTIONS(4784903, {LogComponent::kControl}, "Shutting down the LogicalSessionCache");
+ LOGV2(4784903, "Shutting down the LogicalSessionCache");
lsc->joinOnShutDown();
}
@@ -1276,7 +1276,7 @@ void shutdownTask(const ShutdownTaskArgs& shutdownArgs) {
}
#endif
- LOGV2_OPTIONS(4784925, {LogComponent::kControl}, "Shutting down free monitoring");
+ LOGV2(4784925, "Shutting down free monitoring");
stopFreeMonitoring();
// Shutdown Full-Time Data Capture
@@ -1310,7 +1310,7 @@ void shutdownTask(const ShutdownTaskArgs& shutdownArgs) {
LOGV2_OPTIONS(4784931, {LogComponent::kDefault}, "Dropping the scope cache for shutdown");
ScriptEngine::dropScopeCache();
- LOGV2_OPTIONS(20565, {LogComponent::kControl}, "Now exiting");
+ LOGV2(20565, "Now exiting");
audit::logShutdown(client);