summaryrefslogtreecommitdiff
path: root/src/mongo/db/startup_warnings_common.cpp
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2017-05-15 16:14:47 -0400
committerSpencer Jackson <spencer.jackson@mongodb.com>2017-05-16 09:30:01 -0400
commitbb1350c516191106b2af7e880cac41e51170e2fa (patch)
tree92847ddf26fab71ff393dacdbc6e3f8692abcb42 /src/mongo/db/startup_warnings_common.cpp
parent24aea90b857f37d9fed8e1cd7902c4440997f0ba (diff)
downloadmongo-bb1350c516191106b2af7e880cac41e51170e2fa.tar.gz
SERVER-29204: Elaborate on bind to localhost startup warning
Diffstat (limited to 'src/mongo/db/startup_warnings_common.cpp')
-rw-r--r--src/mongo/db/startup_warnings_common.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/startup_warnings_common.cpp b/src/mongo/db/startup_warnings_common.cpp
index 4259ded0d23..78076cc0950 100644
--- a/src/mongo/db/startup_warnings_common.cpp
+++ b/src/mongo/db/startup_warnings_common.cpp
@@ -114,14 +114,16 @@ void logCommonStartupWarnings(const ServerGlobalParams& serverParams) {
if (serverParams.bind_ip.empty()) {
log() << startupWarningsLog;
- log() << "** ATTENTION: The server is bound to localhost." << startupWarningsLog;
+ log() << "** WARNING: This server is bound to localhost." << startupWarningsLog;
log() << "** Remote systems will be unable to connect to this server. "
<< startupWarningsLog;
log() << "** Start the server with --bind_ip <address> to specify which IP "
- "addresses it"
<< startupWarningsLog;
- log() << "** should serve responses from, or with --bind_ip_all to bind to all "
- "interfaces."
+ log() << "** addressses it should serve responses from, or with --bind_ip_all to"
+ << startupWarningsLog;
+ log() << "** bind to all interfaces. If this behavior is desired, start the"
+ << startupWarningsLog;
+ log() << "** server with --bind_ip 127.0.0.1 to disable this warning."
<< startupWarningsLog;
warned = true;
}