-
Notifications
You must be signed in to change notification settings - Fork 204
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
Enable RMM Debug Logging via Python #1339
Enable RMM Debug Logging via Python #1339
Conversation
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.
Some minor possible cleanup (mostly documentation), looks good to me overall
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.
Thanks @harrism ! Looks really good. A bunch of very minor polish/nitpick comments, but nothing to hold things up (other than the flake8 failure in linting on line 111 of logger.pyx).
I committed the fix for that one. |
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 started a review but I'd like to wait until some of @wence-'s comments can be resolved before diving into this at a closer level.
For the moment, I'm wondering whether should_log
should be a private function, or maybe replaced by something like a private member (or method) _compiled_log_level
that can be used for direct determination of the compiled setting.
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 just commented on the threads where I was tagged but can provide a more comprehensive review once more of the open questions have been addressed.
My latest changes expose the C++ enum directly, renamed to Regarding I could expose logging functions to enable adding custom messages to the log from Python code as well. Separate PR. |
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.
Minor fixes for link syntax
The URL must be surrounded by < > characters.
From my perspective this looks great as is. I (hopefully) fixed the doc-build failures 🤞 which were due to bad links. Not sure if @bdice will still have comments |
Thanks for fixing my sphinx links @wence-, and for all your suggestions. |
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.
Following @wence-'s lead, I'm trying out the semantic review comments! Overall this PR is looking really good now, just a few things that I'd like to see resolved before we can merge.
FYI I would guess that the issue you were seeing where any integral value was accepted for the enum is closely related to cython/cython#5610.
Co-authored-by: Vyas Ramasubramani <[email protected]>
/merge |
Description
Enables RMM debug logging in Python and exposes controls for the level of logging. Fixes #1336.
Checklist