Skip to content
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

not clear how to produce debug output #1522

Closed
gnzlbg opened this issue Feb 11, 2019 · 3 comments
Closed

not clear how to produce debug output #1522

gnzlbg opened this issue Feb 11, 2019 · 3 comments

Comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Feb 11, 2019

RUST_LOG=all cargo test some_bindgen_test -- --nocapture does not dump debug output. I can't find in the readme or the user guide or the issue template how to enable logging for bindgen.

How to enable debug output should be documented somewhere, or ideally it should "just work" for tests.

@emilio
Copy link
Contributor

emilio commented Feb 11, 2019

Generally I just run the test manually with ./target/debug/bindgen if I want debug output. I'm not sure if you can add some sort of hook before running all tests, but if you can fixing this should be a matter of calling env_logger::init() there or something.

@cbourjau
Copy link

Might this be related to this issue: rust-lang/rust#40298 ?

@emilio
Copy link
Contributor

emilio commented Mar 28, 2019

@jethrogb enabled logging in the test-suite in #1540.

@emilio emilio closed this as completed Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants