Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
2.3.2
-
None
-
Confirmed on OS X and Linux 64
-
Major Change
Description
Cannot capture output from print() commands issued to mongo shell when running a script and redirecting stdout to a file. Shell behaves as expected in 2.2.2, but have confirmed the unexpected behavior in 2.3.2, and 2013-01-14 nightly.
$ rm it.log
$ cat it.js
print("Hello");
$ ./mongo --nodb ./it.js 1> it.log
$ cat it.log
MongoDB shell version: 2.3.3-pre-
$ ./mongo --nodb ./it.js
MongoDB shell version: 2.3.3-pre-
Hello
$
Attachments
Issue Links
- is related to
-
SERVER-8171 Logging to stdout can break in V8
-
- Closed
-