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

Set logging level to DEBUG for llvm_interpret_raw #4518

Merged
merged 4 commits into from
Jul 12, 2024

Conversation

tothtamas28
Copy link
Contributor

@tothtamas28 tothtamas28 commented Jul 12, 2024

Fixes #4516

  • Add parameter loglevel to run_process_2.
  • Set loglevel to DEBUG for llvm_interpret_raw. This is a more reasonable choice than INFO, since we only need this information for diagnosing problems.
  • Set the logger to the logger of the host module for llvm_interpret_raw. This enables finer grained configuration from the application.

Use `PurePath.is_relative_to` from `pathlib`.
@tothtamas28 tothtamas28 self-assigned this Jul 12, 2024
Comment on lines -652 to -656
# Implementation because of outdated Python versions: https://github.com/python/cpython/blob/1de4395f62bb140563761ef5cbdf46accef3c550/Lib/pathlib.py#L554
def is_relative_to(_self: Path, other: Path) -> bool:
return _self == other or other in _self.parents


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 is an unrelated cleanup, but since it is straightforward to adjust for in dependents I decided to include it in this PR.

@tothtamas28 tothtamas28 linked an issue Jul 12, 2024 that may be closed by this pull request
@tothtamas28 tothtamas28 marked this pull request as ready for review July 12, 2024 09:45
@tothtamas28 tothtamas28 requested a review from gtrepta July 12, 2024 09:45
@tothtamas28 tothtamas28 force-pushed the llvm-interpret-logging branch from 370bad2 to a8faa71 Compare July 12, 2024 09:51
@tothtamas28 tothtamas28 force-pushed the llvm-interpret-logging branch from a8faa71 to 80135c8 Compare July 12, 2024 09:57
Copy link
Contributor

@gtrepta gtrepta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and it works. Thanks!

@rv-jenkins rv-jenkins merged commit 29cabd1 into develop Jul 12, 2024
18 checks passed
@rv-jenkins rv-jenkins deleted the llvm-interpret-logging branch July 12, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

llvm_interpret logs are very verbose
3 participants