summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2020-08-24 16:19:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-25 17:15:40 +0000
commita03683171f2ef6d33cf3c9db9b6b6fe9041d147c (patch)
treed91ee8b5abdafefe655d948d7e10f7d3a103e444
parent42bb1c9f95da7a71d5e17c37834f842a0b18836d (diff)
downloadmongo-a03683171f2ef6d33cf3c9db9b6b6fe9041d147c.tar.gz
SERVER-50490 Reduce log severity of SERVER RESTARTED warning
-rw-r--r--src/mongo/db/initialize_server_global_state.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/initialize_server_global_state.cpp b/src/mongo/db/initialize_server_global_state.cpp
index 7f38a1d4e66..0ecacf78018 100644
--- a/src/mongo/db/initialize_server_global_state.cpp
+++ b/src/mongo/db/initialize_server_global_state.cpp
@@ -366,12 +366,11 @@ MONGO_INITIALIZER_GENERAL(ServerLogRedirection,
lv2Config.timestampFormat = serverGlobalParams.logTimestampFormat;
Status result = lv2Manager.getGlobalDomainInternal().configure(lv2Config);
- if (result.isOK() && writeServerRestartedAfterLogConfig)
- LOGV2_WARNING_OPTIONS(
- 20698, {logv2::LogTag::kStartupWarnings}, "***** SERVER RESTARTED *****");
- return result;
+ if (result.isOK() && writeServerRestartedAfterLogConfig) {
+ LOGV2(20698, "***** SERVER RESTARTED *****");
+ }
- return Status::OK();
+ return result;
}
/**