Skip to content

Log messages from other crates are not visible when running rustdoc #46383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Aaron1011 opened this issue Nov 29, 2017 · 1 comment
Closed

Log messages from other crates are not visible when running rustdoc #46383

Aaron1011 opened this issue Nov 29, 2017 · 1 comment

Comments

@Aaron1011
Copy link
Member

When invoking a locally-built rustc or rustdoc compiled with debug assertions, debug messages can be enabled by setting the environment variable RUST_LOG=debug.

When invoking rustc with RUST_LOG=debug, log message will be displayed from all internal crates (e.g. librustc, libsynax) as expected. However, when invoking rustdoc with RUST_LOG=debug, only messages from librustdoc are displayed, despite many other internal crates being used by rustdoc.

@Mark-Simulacrum
Copy link
Member

I suspect the blame lies somewhere within rustc_driver, but I don't know for sure.

Aaron1011 added a commit to Aaron1011/rust that referenced this issue Nov 29, 2017
We want librustdoc to pickup the env_logger dependency from
the sysroot. This ensures that the same copy of env_logger is used
for both internal crates (e.g. librustc_driver, libsyntax) and
librustdoc

Closes rust-lang#46383
arielb1 pushed a commit to arielb1/rust that referenced this issue Nov 30, 2017
…imulacrum

Remove librustdoc dependency on env_logger

We want librustdoc to pickup the env_logger dependency from
the sysroot. This ensures that the same copy of env_logger is used
for both internal crates (e.g. librustc_driver, libsyntax) and
librustdoc

Closes rust-lang#46383
arielb1 pushed a commit to arielb1/rust that referenced this issue Nov 30, 2017
…imulacrum

Remove librustdoc dependency on env_logger

We want librustdoc to pickup the env_logger dependency from
the sysroot. This ensures that the same copy of env_logger is used
for both internal crates (e.g. librustc_driver, libsyntax) and
librustdoc

Closes rust-lang#46383
arielb1 pushed a commit to arielb1/rust that referenced this issue Nov 30, 2017
…imulacrum

Remove librustdoc dependency on env_logger

We want librustdoc to pickup the env_logger dependency from
the sysroot. This ensures that the same copy of env_logger is used
for both internal crates (e.g. librustc_driver, libsyntax) and
librustdoc

Closes rust-lang#46383
arielb1 pushed a commit to arielb1/rust that referenced this issue Nov 30, 2017
…imulacrum

Remove librustdoc dependency on env_logger

We want librustdoc to pickup the env_logger dependency from
the sysroot. This ensures that the same copy of env_logger is used
for both internal crates (e.g. librustc_driver, libsyntax) and
librustdoc

Closes rust-lang#46383
kennytm added a commit to kennytm/rust that referenced this issue Dec 1, 2017
…imulacrum

Remove librustdoc dependency on env_logger

We want librustdoc to pickup the env_logger dependency from
the sysroot. This ensures that the same copy of env_logger is used
for both internal crates (e.g. librustc_driver, libsyntax) and
librustdoc

Closes rust-lang#46383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants