Skip to content

Conversation

macdonaldo
Copy link

No description provided.

@@ -207,10 +207,10 @@ $ RUSTDOC_LOG=rustdoc rustdoc +local my-file.rs

While calls to `error!`, `warn!` and `info!` are included in every build of the compiler,
calls to `debug!` and `trace!` are only included in the program if
`debug-assertions=yes` is turned on in config.toml (it is
`debug-assertions=true` is turned on in config.toml (it is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! Although this actually changed recently to be more specific: rust-lang/rust#76588

Suggested change
`debug-assertions=true` is turned on in config.toml (it is
`debug-logging=true` is turned on in config.toml (it is

turned off by default), so if you don't see `DEBUG` logs, especially
if you run the compiler with `RUSTC_LOG=rustc rustc some.rs` and only see
`INFO` logs, make sure that `debug-assertions=yes` is turned on in your
`INFO` logs, make sure that `debug-assertions=true` is turned on in your
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`INFO` logs, make sure that `debug-assertions=true` is turned on in your
`INFO` logs, make sure that `debug-logging=true` is turned on in your

@jyn514 jyn514 added the S-waiting-on-author Status: this PR is waiting for additional action by the OP label Sep 17, 2020
@jyn514 jyn514 self-assigned this Sep 17, 2020
@jyn514 jyn514 merged commit ed59c2d into rust-lang:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: this PR is waiting for additional action by the OP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants