Skip to content

Commit

Permalink
chore(env): retire RUSTUP_DEBUG in favor of RUST_LOG
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jun 14, 2024
1 parent b81a64e commit 6489353
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 6 additions & 2 deletions doc/user-guide/src/environment-variables.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Environment variables

- `RUST_LOG` (default: none). Enables Rustup's "custom logging mode". In this mode,
the verbosity of Rustup's log lines can be specified with `tracing_subscriber`'s
[directive syntax]. For example, set `RUST_LOG=rustup=DEBUG` to receive log lines
from `rustup` itself with a maximal verbosity of `DEBUG`.

- `RUSTUP_HOME` (default: `~/.rustup` or `%USERPROFILE%/.rustup`). Sets the
root `rustup` folder, used for storing installed toolchains and
configuration options.
Expand Down Expand Up @@ -29,8 +34,6 @@
determines the directory that traces will be written too. Traces are of the
form PID.trace. Traces can be read by the Catapult project [tracing viewer].

- `RUSTUP_DEBUG` *unstable*. When set, enables rustup's debug logging.

- `RUSTUP_TERM_COLOR` (default: `auto`). Controls whether colored output is used in the terminal.
Set to `auto` to use colors only in tty streams, to `always` to always enable colors,
or to `never` to disable colors.
Expand All @@ -47,6 +50,7 @@
feature sacrifices some transactions protections and may be removed at any
point. Linux only.

[directive syntax]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
[dc]: https://docs.docker.com/storage/storagedriver/overlayfs-driver/#modifying-files-or-directories
[override]: overrides.md
[tracing viewer]: https://github.com/catapult-project/catapult/blob/master/tracing/README.md
7 changes: 0 additions & 7 deletions src/diskio/threaded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,6 @@ impl<'a> Executor for Threaded<'a> {
self.tx
.send(Task::Sentinel)
.expect("must still be listening");
if crate::currentprocess::process().var("RUSTUP_DEBUG").is_ok() {
// debug! is in the cli layer. erg. And notification stack is still terrible.
debug!("");
for (bucket, pool) in &self.vec_pools {
debug!("{:?}: {:?}", bucket, pool);
}
}
Box::new(JoinIterator {
executor: self,
consume_sentinel: false,
Expand Down

0 comments on commit 6489353

Please sign in to comment.