Skip to content

Commit be71987

Browse files
committed
Mention that prefixes of paths work as log filters
1 parent 4acb428 commit be71987

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/compiler-debugging.md

+6
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ For example, to get the `debug!` output for a specific module, you can run the
171171
compiler with `RUSTC_LOG=path::to::module=debug rustc my-file.rs`. All `debug!`
172172
output will then appear in standard error.
173173

174+
Note that you can use a partial path and the filter will still work. For
175+
example, if you want to see `info!` output from only
176+
`rustdoc::passes::collect_intra_doc_links`, you could use
177+
`RUSTDOC_LOG=rustdoc::passes::collect_intra_doc_links=debug` *or* you could use
178+
`RUSTDOC_LOG=rustdoc::passes::collect_intra=debug`.
179+
174180
If you are developing rustdoc, use `RUSTDOC_LOG` instead. If you are developing
175181
Miri, use `MIRI_LOG` instead. You get the idea :)
176182

0 commit comments

Comments
 (0)