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

--log-level doesn't work #1024

Open
TriplEight opened this issue Apr 25, 2023 · 0 comments
Open

--log-level doesn't work #1024

TriplEight opened this issue Apr 25, 2023 · 0 comments
Labels

Comments

@TriplEight
Copy link

TriplEight commented Apr 25, 2023

I'm running grcov $(find . -name 'cargo-test-*.profraw' -o -name '*.gcno' -o -name '*.gcda') --binary-path ./target/testnet/deps -s . -t html,lcov --branch --ignore-not-existing -o html42-deps --log-level DEBUG --log stdout

And the only output I get is

[2023-04-25 10:04:46] 10:04:46 [ERROR] A panic occurred at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/grcov-0.8.18/src/producer.rs:504: Cannot load file '"/builds/TriplEight/target/debug/build/eyre-283ea9182ebd0eaf/build_script_build-283ea9182ebd0eaf.gcda"': it isn't a .info, a .json or a .xml file.
[2023-04-25 10:04:48] 10:04:48 [ERROR] A panic occurred at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/grcov-0.8.18/src/producer.rs:504: Cannot load file '"/builds/TriplEight/target/debug/deps/chacha20poly1305-0942dab31ea37fd3.gcno"': it isn't a .info, a .json or a .xml file.
exit code 123

Tried different options for --log-level and --log flags, but nothing helped. The only way I could come up with to get the logs is strace -f grcov ..., but it's a pain to dig through.

It would be helpful to see gcov output like here: https://users.rust-lang.org/t/howto-generating-a-branch-coverage-report/8524/11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants