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

Fix cargo kani --debug and remove debug logs from --verbose #1730

Merged
merged 4 commits into from
Sep 30, 2022

Conversation

celinval
Copy link
Contributor

Description of changes:

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

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

- 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`.
@celinval celinval requested a review from a team as a code owner September 29, 2022 19:44
@celinval celinval changed the title Fix log Fix cargo kani --debug and remove debug logs from --verbose Sep 29, 2022
Copy link
Contributor

@tedinski tedinski left a 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

Comment on lines -110 to -111
} else if self.args.verbose {
flags.push("--log-level=info".into());
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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...

Copy link
Contributor Author

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.

@celinval celinval merged commit fbf0533 into model-checking:main Sep 30, 2022
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

Successfully merging this pull request may close these issues.

--verbose doesn't work anymore --debug doesn't work anymore
2 participants