-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fix cargo kani --debug
and remove debug logs from --verbose
#1730
Conversation
- Fix model-checking#1348: Fix `cargo kani --debug` by redirecting kani-compiler logs to the STDERR so it doesn't conflict with cargo's output expectations. - Fix model-checking#1631: Remove `kani-compiler` logs from the output of `--verbose`.
cargo kani --debug
and remove debug logs from --verbose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably fine, but I had a question
} else if self.args.verbose { | ||
flags.push("--log-level=info".into()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this behavior undesirable? Not sure why this was changed.
The stderr logging was enough to fix, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was to fix #1631
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, despite me being the one to file those issues, I'd forgotten what the verbose one was actually about.
Makes sense! :)
The CI failure is a mystery though...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found out the issue. Submitting a patch now.
Description of changes:
cargo kani --debug
by redirecting kani-compiler logs to the STDERR so it doesn't conflict with cargo's output expectations.kani-compiler
logs from the output of--verbose
.Resolved issues:
Fix #1631
Fix #1348
Related RFC:
N/A
Call-outs:
These were tiny fixes so I combined them in one PR.
Testing:
How is this change tested? N/A
Is this a refactor change?
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.