Description
% mongo
|
MongoDB shell version: 3.1.3
|
connecting to: test
|
> exit
|
% mongo --quiet
|
> exit
|
% mongo --shell
|
MongoDB shell version: 3.1.3
|
connecting to: test
|
type "help" for help
|
> exit
|
% mongo --quiet --shell
|
type "help" for help
|
>
|
The culprit seems to be this line (not even sure why it's there):
https://github.com/mongodb/mongo/blob/449e0f2b47e32060433cb6f68d967ea53c8573d1/src/mongo/shell/dbshell.cpp#L688-L689
Instead of
if( shellGlobalParams.runShell )
|
it should be
if( shellGlobalParams.runShell && !mongo::serverGlobalParams.quiet )
|
Attachments
Issue Links
- is related to
-
SERVER-23810 Don't Print Shell Log Messages to STDOUT When --quiet Is Used
-
- Closed
-
- links to