Can you completely suppress pants output so you on...
# general
e
Can you completely suppress pants output so you only get whatever the running target produces as stdout, --quiet doesnt quite do this?
w
--quiet
nearly does... some stderr is still produced, but nothing should go to stdout
but yea, it could be better. this is definitely something that would be good to tighten up in v2.
(i think that nearly the only output to stderr should be... cache hits, maybe... its a silly wart because they all render on one line, so don't use a logger directly)
e
Okay, if nothing else goes to stdout I might have been piping things wrong
w
until v2, if you need an iron-clad guarantee, taking as an argument an output file to write to is one approach.
but yea, anything being written to stdout should be considered a bug... it's mostly the stderr that is warty and lower priority
e
this command
./pants run --quiet {omiited} > query_output
still wrote some spammy stuff to the query_output file
am I not using --quiet correctly?
w
./pants --quiet run
e
ah ok
w
(global rather than scoped)
(also a wart.)