Open Bug 1945520 Opened 5 days ago Updated 5 days ago

Support global `--quiet` flag

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: ahal, Assigned: ahal)

Details

Attachments

(1 file)

There's a use case where I'd like to hook ./mach lint up to a tool that passes a file on stdin, and expects the fixed version of said file on stdout. The problem is that if mach logs anything to stdout, it'll end up being added to the front of the file ><

I wrote a patch that adds a --quiet flag which suppresses the virtualenv creation logs, and changes the log level to ERROR. In the end, I realized that this still isn't good enough for my use cases, because someone could add some print debugging or the like. Instead I ended up writing a script that wraps ./mach lint and redirects stdout -> stderr.

So technically, I don't need this anymore, but the patch is written and I think it's a good flag to include regardless. It would still be nice to have the ability for mach to be less verbose in certain situations.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: