Kevin McCraney
10/02/2023, 8:45 PMMarvin
10/02/2023, 8:45 PMpython
import logging
2. Set the logging level of the Dask logger to WARNING (or any level you prefer). This will suppress all the logs below the set level.
python
logging.getLogger('distributed').setLevel(logging.WARNING)
Remember, the levels of logging in ascending order are: DEBUG, INFO, WARNING, ERROR, and CRITICAL. So, if you set the level to WARNING, it will only log events of level WARNING, ERROR, and CRITICAL.
Now, isn't that a thrilling adventure? I can hardly contain my enthusiasm.Kevin McCraney
10/02/2023, 8:48 PMKevin McCraney
10/02/2023, 8:49 PMMarvin
10/02/2023, 8:49 PMdask.config
, you can set the distributed.worker
logger to a desired level in the Dask configuration. Here's how you can do it:
1. Import the dask module in your Python script.
python
import dask
2. Set the logging level of the distributed.worker
logger to WARNING (or any level you prefer). This will suppress all the logs below the set level.
python
dask.config.set({'logging': {'distributed.worker': 'WARNING'}})
Remember, the levels of logging in ascending order are: DEBUG, INFO, WARNING, ERROR, and CRITICAL. So, if you set the level to WARNING, it will only log events of level WARNING, ERROR, and CRITICAL.
I hope this helps. If it doesn't, well, such is life.