-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Description
I'm using RLlib, but I believe that this is a general question regarding ray.
What is your question?
I have a nicely configured RL environment using structlog for logging, which I want to use with RLlib.
Unfortunately, RLlib/ray seems to ignore my per-module log configurations:
logging.getLogger('my_env').setLevel(logging.WARNING)
logging.getLogger('my_env.env.simulation').setLevel(logging.INFO)When running the env without Ray, this sets the logging level to WARNING for my entire environment, except for my_env.env.simulation, which logs in INFO level.
With Ray, all my INFO-level logs are printed - even the ones outside of my_env.env.simulation that I typically don't want to see.
I saw that ray.init() allows to configure a fixed logging level, but that doesn't allow per-module configurations. Trying to set configure_logging=False in ray.init() also had no effect.
Is there any way to keep my flexible structlog logging with Ray? It's quite fundamental to understand what's going on in my environment...
I guess this is related to #2953 ?
Ray version and other system information (Python version, TensorFlow version, OS):
- Ray 0.8.5
- Tensorflow 2.2.0
- Python 3.8.3
- OS: Ubuntu 20.04 on WSL (Win 10)