[SERVER-3577] mongoexport verbose logging echoes to stdout Created: 11/Aug/11  Updated: 29/Aug/11  Resolved: 11/Aug/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.8.2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Y. Wayne Huang Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: mongoexport
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-3112 mongo* tools logs should not log to s... Closed
Operating System: ALL
Participants:

 Description   

when using mongoexport -v, the additional logging is echoed to stdout. one typically assumes verbose logging will be sent to stderr, particularly when the data being exported is echoed to stdout.

to reproduce:
mongoexport -v -d mydb -c mycoll --csv | tee mycoll.txt

expected:
mycoll.txt contains only the header line and exported data

actual:
mycoll.txt contains -v output, header line and exported data


Generated at Thu Feb 08 03:03:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.