https://pantsbuild.org/ logo
e

early-needle-54791

01/24/2020, 8:48 PM
Can you completely suppress pants output so you only get whatever the running target produces as stdout, --quiet doesnt quite do this?
w

witty-crayon-22786

01/24/2020, 8:54 PM
--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

early-needle-54791

01/24/2020, 8:56 PM
Okay, if nothing else goes to stdout I might have been piping things wrong
w

witty-crayon-22786

01/24/2020, 8:57 PM
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

early-needle-54791

01/24/2020, 9:00 PM
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

witty-crayon-22786

01/24/2020, 9:00 PM
./pants --quiet run
e

early-needle-54791

01/24/2020, 9:01 PM
ah ok
w

witty-crayon-22786

01/24/2020, 9:01 PM
(global rather than scoped)
(also a wart.)
2 Views