Auto merge of #76588 - guswynn:debug_logging, r=jyn514,Mark-Simulacrum
Add a dedicated debug-logging option to config.toml `@Mark-Simulacrum` and I were talking in zulip and we found that turning on debug/trace logging in rustc is fairly confusing, as it effectively depends on debug-assertions and is not documented as such. `@Mark-Simulacrum` mentioned that we should probably have a separate option for logging anyways. this diff adds that, having the option follow debug-assertions (so everyone's existing config.toml should be fine) and if the option is false to test I ran ./x.py test <something> twice, once with `debug-logging = false` and once with `debug-logging = true` and made sure i only saw trace's when it was true
This commit is contained in:
commit
4e48010b95
5 changed files with 27 additions and 3 deletions
|
@ -19,3 +19,4 @@ features = ['unprefixed_malloc_on_supported_platforms']
|
|||
[features]
|
||||
jemalloc = ['jemalloc-sys']
|
||||
llvm = ['rustc_driver/llvm']
|
||||
max_level_info = ['rustc_driver/max_level_info']
|
||||
|
|
|
@ -9,7 +9,7 @@ crate-type = ["dylib"]
|
|||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
tracing = { version = "0.1.18", features = ["release_max_level_info"] }
|
||||
tracing = { version = "0.1.18" }
|
||||
tracing-subscriber = { version = "0.2.10", default-features = false, features = ["fmt", "env-filter", "smallvec", "parking_lot", "ansi"] }
|
||||
rustc_middle = { path = "../rustc_middle" }
|
||||
rustc_ast_pretty = { path = "../rustc_ast_pretty" }
|
||||
|
@ -38,3 +38,4 @@ winapi = { version = "0.3", features = ["consoleapi", "debugapi", "processenv"]
|
|||
|
||||
[features]
|
||||
llvm = ['rustc_interface/llvm']
|
||||
max_level_info = ['tracing/max_level_info']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue