summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-11-09 11:31:53 -0500
committerDavid Storch <david.storch@10gen.com>2016-11-09 13:37:51 -0500
commitcdaa9c22ed65bede44afca6e696cf5ee20224302 (patch)
tree57a67a0b91ed8ac6809001bde82332c80bea43c6
parent23681bf8db5a2d6ce2a969de7ec6ff5284a19169 (diff)
downloadmongo-cdaa9c22ed65bede44afca6e696cf5ee20224302.tar.gz
SERVER-21745 change shell to not print readMode/writeMode fallback messages
-rw-r--r--src/mongo/shell/mongo.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mongo/shell/mongo.js b/src/mongo/shell/mongo.js
index 2ba2d7ffcd9..cbc7386f0f9 100644
--- a/src/mongo/shell/mongo.js
+++ b/src/mongo/shell/mongo.js
@@ -294,7 +294,6 @@ Mongo.prototype.writeMode = function() {
if (this.hasWriteCommands()) {
// good with whatever is already set
} else if (this._writeMode == "commands") {
- print("Cannot use commands write mode, degrading to compatibility mode");
this._writeMode = "compatibility";
}
@@ -344,7 +343,6 @@ Mongo.prototype.readMode = function() {
if (hasReadCommands) {
this._readMode = "commands";
} else {
- print("Cannot use 'commands' readMode, degrading to 'legacy' mode");
this._readMode = "legacy";
}
} catch (e) {