summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-20 07:17:37 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-20 07:17:37 -0500
commit007da4fdc7da610cb44985be786795125abe0f94 (patch)
treefa4efa7dea624d670d11a7f7c095b2aa9684e784
parenta0d90a4478d3e954235e740977b3d91a43b56374 (diff)
downloadmongo-007da4fdc7da610cb44985be786795125abe0f94.tar.gz
make --quiet not print out connection accepted SERVER-498
-rw-r--r--util/message.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/message.cpp b/util/message.cpp
index cfb03a53168..1eb45f6aa97 100644
--- a/util/message.cpp
+++ b/util/message.cpp
@@ -25,6 +25,7 @@
#include "../util/background.h"
#include <fcntl.h>
#include <errno.h>
+#include "../db/cmdline.h"
namespace mongo {
@@ -84,7 +85,7 @@ namespace mongo {
continue;
}
disableNagle(s);
- log() << "connection accepted from " << from.toString() << " #" << ++connNumber << endl;
+ if ( ! cmdLine.quiet ) log() << "connection accepted from " << from.toString() << " #" << ++connNumber << endl;
accepted( new MessagingPort(s, from) );
}
}