Skip to content

Commit 6489353

Browse files
committed
chore(env): retire RUSTUP_DEBUG in favor of RUST_LOG
1 parent b81a64e commit 6489353

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

doc/user-guide/src/environment-variables.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Environment variables
22

3+
- `RUST_LOG` (default: none). Enables Rustup's "custom logging mode". In this mode,
4+
the verbosity of Rustup's log lines can be specified with `tracing_subscriber`'s
5+
[directive syntax]. For example, set `RUST_LOG=rustup=DEBUG` to receive log lines
6+
from `rustup` itself with a maximal verbosity of `DEBUG`.
7+
38
- `RUSTUP_HOME` (default: `~/.rustup` or `%USERPROFILE%/.rustup`). Sets the
49
root `rustup` folder, used for storing installed toolchains and
510
configuration options.
@@ -29,8 +34,6 @@
2934
determines the directory that traces will be written too. Traces are of the
3035
form PID.trace. Traces can be read by the Catapult project [tracing viewer].
3136

32-
- `RUSTUP_DEBUG` *unstable*. When set, enables rustup's debug logging.
33-
3437
- `RUSTUP_TERM_COLOR` (default: `auto`). Controls whether colored output is used in the terminal.
3538
Set to `auto` to use colors only in tty streams, to `always` to always enable colors,
3639
or to `never` to disable colors.
@@ -47,6 +50,7 @@
4750
feature sacrifices some transactions protections and may be removed at any
4851
point. Linux only.
4952

53+
[directive syntax]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
5054
[dc]: https://docs.docker.com/storage/storagedriver/overlayfs-driver/#modifying-files-or-directories
5155
[override]: overrides.md
5256
[tracing viewer]: https://github.com/catapult-project/catapult/blob/master/tracing/README.md

src/diskio/threaded.rs

-7
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,6 @@ impl<'a> Executor for Threaded<'a> {
305305
self.tx
306306
.send(Task::Sentinel)
307307
.expect("must still be listening");
308-
if crate::currentprocess::process().var("RUSTUP_DEBUG").is_ok() {
309-
// debug! is in the cli layer. erg. And notification stack is still terrible.
310-
debug!("");
311-
for (bucket, pool) in &self.vec_pools {
312-
debug!("{:?}: {:?}", bucket, pool);
313-
}
314-
}
315308
Box::new(JoinIterator {
316309
executor: self,
317310
consume_sentinel: false,

0 commit comments

Comments
 (0)