@@ -66,26 +66,26 @@ fn init_early_loggers() {
66
66
// If it is not set, we avoid initializing now so that we can initialize
67
67
// later with our custom settings, and *not* log anything for what happens before
68
68
// `miri` gets started.
69
- if env:: var ( "RUST_LOG " ) . is_ok ( ) {
69
+ if env:: var ( "RUSTC_LOG " ) . is_ok ( ) {
70
70
rustc_driver:: init_rustc_env_logger ( ) ;
71
71
}
72
72
}
73
73
74
74
fn init_late_loggers ( ) {
75
- // We initialize loggers right before we start evaluation. We overwrite the `RUST_LOG `
75
+ // We initialize loggers right before we start evaluation. We overwrite the `RUSTC_LOG `
76
76
// env var if it is not set, control it based on `MIRI_LOG`.
77
77
if let Ok ( var) = env:: var ( "MIRI_LOG" ) {
78
- if env:: var ( "RUST_LOG " ) . is_err ( ) {
78
+ if env:: var ( "RUSTC_LOG " ) . is_err ( ) {
79
79
// We try to be a bit clever here: if `MIRI_LOG` is just a single level
80
80
// used for everything, we only apply it to the parts of rustc that are
81
- // CTFE-related. Otherwise, we use it verbatim for `RUST_LOG `.
81
+ // CTFE-related. Otherwise, we use it verbatim for `RUSTC_LOG `.
82
82
// This way, if you set `MIRI_LOG=trace`, you get only the right parts of
83
83
// rustc traced, but you can also do `MIRI_LOG=miri=trace,rustc_mir::interpret=debug`.
84
84
if log:: Level :: from_str ( & var) . is_ok ( ) {
85
- env:: set_var ( "RUST_LOG " ,
85
+ env:: set_var ( "RUSTC_LOG " ,
86
86
& format ! ( "rustc::mir::interpret={0},rustc_mir::interpret={0}" , var) ) ;
87
87
} else {
88
- env:: set_var ( "RUST_LOG " , & var) ;
88
+ env:: set_var ( "RUSTC_LOG " , & var) ;
89
89
}
90
90
rustc_driver:: init_rustc_env_logger ( ) ;
91
91
}
0 commit comments