summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Daniels <eric.daniels@10gen.com>2013-07-22 15:48:56 -0400
committerShaun Verch <shaun.verch@10gen.com>2013-07-30 14:40:37 -0400
commit0650bbfbcee9655a22adf01c95e44e069a65e32b (patch)
tree99fec483399d7ecfba8a184dfcd345cd00874560
parent9f6cf548d5fe19daf4478e5ffd4072a3993302e0 (diff)
downloadmongo-0650bbfbcee9655a22adf01c95e44e069a65e32b.tar.gz
SERVER-10204 using info printing paradigm for export finished output message
Signed-off-by: Shaun Verch <shaun.verch@10gen.com>
-rw-r--r--src/mongo/tools/export.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/tools/export.cpp b/src/mongo/tools/export.cpp
index ce39d60b1cd..8569a75a3cb 100644
--- a/src/mongo/tools/export.cpp
+++ b/src/mongo/tools/export.cpp
@@ -241,7 +241,9 @@ public:
if (jsonArray)
out << ']' << endl;
- cerr << "exported " << num << " records" << endl;
+ if (!_quiet) {
+ (_usesstdout ? cout : cerr ) << "exported " << num << " records" << endl;
+ }
return 0;
}