Stream: t-compiler/help

Topic: RUSTC_LOG limit


Paul Faria (Oct 02 2019 at 03:09, on Zulip):

Is there a way to limit RUSTC_LOG to only output a specific level and not anything below it? For example, I want to collect logs at rustc::mir, but not rustc::mir::tcx. Is that possible?

ecstatic-morse (Oct 02 2019 at 03:50, on Zulip):

pipe stderr to grep -v 'rustc::mir::tcx'?

pnkfelix (Oct 02 2019 at 10:12, on Zulip):

Is there a way to limit RUSTC_LOG to only output a specific level and not anything below it? For example, I want to collect logs at rustc::mir, but not rustc::mir::tcx. Is that possible?

I've often wanted a way to do this. I wonder if we could hijack a simple notation, like RUSTC_LOG=rustc::mir::self would be the say to say that I only want that module, not its children.

Last update: Nov 11 2019 at 22:00UTC