diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-20 07:17:37 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-20 07:17:37 -0500 |
commit | 007da4fdc7da610cb44985be786795125abe0f94 (patch) | |
tree | fa4efa7dea624d670d11a7f7c095b2aa9684e784 | |
parent | a0d90a4478d3e954235e740977b3d91a43b56374 (diff) | |
download | mongo-007da4fdc7da610cb44985be786795125abe0f94.tar.gz |
make --quiet not print out connection accepted SERVER-498
-rw-r--r-- | util/message.cpp | 3 |
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) ); } } |