I upgraded from 3.3 to 4.0rc5, and the -q and --quiet options have stopped suppressing output. Other switches seem to be working fine. I'm on php 5.3.3.

CommentFileSizeAuthor
#6 drush-quiet-stderr.patch797 bytesgreg.1.anderson

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

Well, I get nothing printed with drush st -q. What command are you running?

bfroehle’s picture

Ditto...

ga@pelican:~$ drush st -q
ga@pelican:~$ drush cron -q
Cron run successfully.                                                                                                                                  [success]
bfroehle’s picture

Status: Postponed (maintainer needs more info) » Active
brianmercer’s picture

Yeah, what bfrohle said. My cron job started spamming me after I upgraded.

greg.1.anderson’s picture

Assigned: Unassigned » greg.1.anderson
Priority: Normal » Major

Looks like -q needs to affect stderr, not just stdout. Drush now writes log output to stderr.

Workaround: drush cron -q 2>/dev/null (but not to worry, I'll fix this pretty soon)

greg.1.anderson’s picture

Status: Active » Needs review
StatusFileSize
new797 bytes

Trivial patch to make stderr respect --quiet, so cron -q will be quiet again.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

looks good.

greg.1.anderson’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.