From 45efeda2f8bc9981971d3e803790536c999ede79 Mon Sep 17 00:00:00 2001 From: bohan Date: Fri, 10 Mar 2023 11:47:27 +0800 Subject: [PATCH 1/2] tracing log along diff crates --- src/tracing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tracing.md b/src/tracing.md index 0bba73f74..44762477d 100644 --- a/src/tracing.md +++ b/src/tracing.md @@ -144,6 +144,10 @@ $ RUSTC_LOG=debug rustc +stage1 my-file.rs 2>all-log # compilers. $ RUSTC_LOG=rustc_codegen_ssa=info rustc +stage1 my-file.rs +# This will show the all tracing calls under `rustc_codegen_ssa` and +# `rustc_resolve`. +$ RUSTC_LOG=rustc_codegen_ssa,rustc_resolve rustc +stage1 my-file.rs + # This will show the output of all `info!` calls made by rustdoc # or any rustc library it calls. $ RUSTDOC_LOG=info rustdoc +stage1 my-file.rs From 75a2d34d1c2c50ab5f8c1e1b43e2b2490b9eb325 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Fri, 10 Mar 2023 09:03:46 +0200 Subject: [PATCH 2/2] improve accuracy --- src/tracing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tracing.md b/src/tracing.md index 44762477d..af484ab5f 100644 --- a/src/tracing.md +++ b/src/tracing.md @@ -144,8 +144,7 @@ $ RUSTC_LOG=debug rustc +stage1 my-file.rs 2>all-log # compilers. $ RUSTC_LOG=rustc_codegen_ssa=info rustc +stage1 my-file.rs -# This will show the all tracing calls under `rustc_codegen_ssa` and -# `rustc_resolve`. +# This will show all logs in `rustc_codegen_ssa` and `rustc_resolve`. $ RUSTC_LOG=rustc_codegen_ssa,rustc_resolve rustc +stage1 my-file.rs # This will show the output of all `info!` calls made by rustdoc