-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[RLlib] Clean up logging configuration #35690
[RLlib] Clean up logging configuration #35690
Conversation
ccf72df
to
445e5eb
Compare
@kouroshHakha @sven1977 Could you pls take a look at this 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.
@peytondmurray Can you clarify how would someone change the logging level in RLlib on distributed rollout workers then?
Sure! Part of the goal of the logging refactor effort was to make logging configuration follow standard python logging protocol more closely. The benefit of this is that if you're a user and you want to change the logging level for just yourself, the python docs cover how to do this without needing to have any ray-specific knowledge. But to answer your question, it depends on if you're asking from a user perspective or a ray developer perspective. If you're asking
Then you should just use standard python logging approaches to modify the config. For example, by default import ray
import logging
logging.getLogger('ray.rllib').setLevel(logging.INFO) # Or some other logging level
# rest of your code goes here This will override the default ray logging configuration. We also have documentation about this if you're interested. If on the other hand your question is
then you would modify the part of the call to |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
|
Signed-off-by: pdmurray <peynmurray@gmail.com>
445e5eb
to
6a79dbe
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
|
Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message. Please feel free to reopen or open a new issue if you'd still like it to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for opening the issue! |
Why are these changes needed?
At the suggestion of @aslonnie I've broken up the remaining logging configuration cleanup into a few separate PRs to make it a little easier to merge.
In this PR:
logging.basicConfig
was called have been removed, and we now use the existing log config defined inray._private.log
. The existing ray logging configuration already has the log level for theray.rllib
logger set tologging.WARN
, so there shouldn't be much difference in logging behavior from the user perspective.AlgorithmConfig
instance or inAlgorithmConfig.debugging
is now deprecated.Related issue number
Partially addresses #30005.
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.